3 types derived from SourcePropertySymbolBase
Microsoft.CodeAnalysis.CSharp (3)
Symbols\Source\SourcePropertySymbol.cs (1)
16internal sealed class SourcePropertySymbol : SourcePropertySymbolBase
Symbols\Synthesized\Records\SynthesizedRecordEqualityContractProperty.cs (1)
15internal sealed class SynthesizedRecordEqualityContractProperty : SourcePropertySymbolBase
Symbols\Synthesized\Records\SynthesizedRecordPropertySymbol.cs (1)
13internal sealed class SynthesizedRecordPropertySymbol : SourcePropertySymbolBase
58 references to SourcePropertySymbolBase
Microsoft.CodeAnalysis.CSharp (58)
Binder\Binder_Statements.cs (3)
1776if (!HasSynthesizedBackingField(propertySymbol, out var sourceProperty)) 1790private static bool HasSynthesizedBackingField(PropertySymbol propertySymbol, [NotNullWhen(true)] out SourcePropertySymbolBase? sourcePropertyDefinition) 1797if (propertySymbol is SourcePropertySymbolBase { BackingField: { } } sourceProperty)
Compiler\MethodBodySynthesizer.cs (2)
178var property = (SourcePropertySymbolBase)accessor.AssociatedSymbol;
Compiler\MethodCompiler.cs (3)
560var sourceProperty = member as SourcePropertySymbolBase; 867private void CompileSynthesizedSealedAccessors(SourcePropertySymbolBase sourceProperty, TypeCompilationState compilationState)
Compiler\SynthesizedMetadataCompiler.cs (2)
105var sourceProperty = symbol as SourcePropertySymbolBase;
Emitter\Model\PropertySymbolAdapter.cs (4)
47var sourceProperty = AdaptedPropertySymbol as SourcePropertySymbolBase; 279var sourceProperty = AdaptedPropertySymbol as SourcePropertySymbolBase;
FlowAnalysis\AbstractFlowPass.cs (2)
573var backingField = (access.PropertySymbol as SourcePropertySymbolBase)?.BackingField; 2273var backingField = (property as SourcePropertySymbolBase)?.BackingField;
FlowAnalysis\DefiniteAssignment.cs (3)
1108member = (propSymbol as SourcePropertySymbolBase)?.BackingField; 1440var backingField = (property as SourcePropertySymbolBase)?.BackingField; 2740var backingField = (property as SourcePropertySymbolBase)?.BackingField;
FlowAnalysis\NullableWalker.cs (9)
678var shouldForcePropertyAnalysis = !constructorEnforcesRequiredMembers && member is not SourcePropertySymbolBase { BackingField: not null } && member.IsRequired(); 777var usesFieldKeyword = symbol is SourcePropertySymbolBase { UsesFieldKeyword: true }; 834case FieldSymbol { AssociatedSymbol: SourcePropertySymbolBase { UsesFieldKeyword: false } prop }: 1024=> requiredMember is SourcePropertySymbolBase { BackingField: { } backingField } ? backingField : requiredMember; 1036var symbolAnnotations = property is SourcePropertySymbolBase { UsesFieldKeyword: true, BackingField: { } field } 2258if (symbol is SynthesizedBackingFieldSymbol { AssociatedSymbol: SourcePropertySymbolBase { UsesFieldKeyword: false } property }) 2261else if (symbol is SourcePropertySymbolBase { UsesFieldKeyword: true, BackingField: { } backingField }) 10454if (left is BoundPropertyAccess { PropertySymbol: SourcePropertySymbolBase { SetMethod: null, UsesFieldKeyword: true } property }) 10569return field.AssociatedSymbol is SourcePropertySymbolBase { UsesFieldKeyword: false } property ?
Lowering\LocalRewriter\LocalRewriter_AssignmentOperator.cs (2)
283var autoProp = (SourcePropertySymbolBase)property.OriginalDefinition;
SymbolDisplay\SymbolDisplayVisitor.Members.cs (1)
129(propertyOpt as Symbols.PublicModel.PropertySymbol)?.UnderlyingSymbol is SourcePropertySymbolBase sourceProperty)
Symbols\Extensions\SourceExtensionImplementationMethodSymbol.cs (1)
72if (_originalMethod is SourcePropertyAccessorSymbol { AssociatedSymbol: SourcePropertySymbolBase extensionProperty })
Symbols\Source\SourceMemberContainerSymbol.cs (1)
1709else if (member is FieldSymbol { AssociatedSymbol: SourcePropertySymbolBase { PartialDefinitionPart: PropertySymbol definition } implementation } &&
Symbols\Source\SourceMemberContainerSymbol_ImplementationChecks.cs (1)
593else if (property is SourcePropertySymbolBase sourceProperty)
Symbols\Source\SourceMethodSymbol.cs (1)
204if (target is SourcePropertyAccessorSymbol { AssociatedSymbol: SourcePropertySymbolBase property })
Symbols\Source\SourcePropertyAccessorSymbol.cs (3)
20private readonly SourcePropertySymbolBase _property; 176SourcePropertySymbolBase property, 224NamedTypeSymbol containingType, SourcePropertySymbolBase property, DeclarationModifiers propertyModifiers, Location location,
Symbols\Source\SourcePropertySymbol.cs (2)
225protected override SourcePropertySymbolBase? BoundAttributesSource => SourcePartialDefinitionPart; 620Binder binder, SourcePropertySymbolBase owner, BaseParameterListSyntax? parameterSyntaxOpt, BindingDiagnosticBag diagnostics, bool addRefReadOnlyModifier)
Symbols\Source\SourcePropertySymbolBase.cs (9)
27/// Condensed flags storing useful information about the <see cref="SourcePropertySymbolBase"/> 318private static void CheckFieldKeywordUsage(SourcePropertySymbolBase property, BindingDiagnosticBag diagnostics) 630/// The method is called at the end of <see cref="SourcePropertySymbolBase"/> constructor. 631/// The implementation may depend only on information available from the <see cref="SourcePropertySymbolBase"/> type. 638/// The method is called at the end of <see cref="SourcePropertySymbolBase"/> constructor. 639/// The implementation may depend only on information available from the <see cref="SourcePropertySymbolBase"/> type. 879CheckFieldKeywordUsage((SourcePropertySymbolBase?)PartialImplementationPart ?? this, diagnostics); 1285protected abstract SourcePropertySymbolBase BoundAttributesSource { get; } 1312var copyFrom = this.BoundAttributesSource;
Symbols\SymbolExtensions.cs (1)
444else if (property is SourcePropertySymbolBase sourceProperty)
Symbols\Synthesized\Records\SynthesizedRecordEqualityContractProperty.cs (2)
58protected override SourcePropertySymbolBase? BoundAttributesSource => null; 136SourcePropertySymbolBase property,
Symbols\Synthesized\Records\SynthesizedRecordPropertySymbol.cs (1)
49protected override SourcePropertySymbolBase? BoundAttributesSource => null;
Symbols\Synthesized\SynthesizedAccessorValueParameterSymbol.cs (2)
39if (ContainingSymbol is SourcePropertyAccessorSymbol propertyAccessor && propertyAccessor.AssociatedSymbol is SourcePropertySymbolBase property) 89if (ContainingSymbol is SourcePropertyAccessorSymbol { AssociatedSymbol: SourcePropertySymbolBase property })
Symbols\Synthesized\SynthesizedBackingFieldSymbol.cs (3)
83private readonly SourcePropertySymbolBase _property; 88SourcePropertySymbolBase property, 112var property = (_property as SourcePropertySymbol)?.SourcePartialDefinitionPart ?? _property;