3 types derived from SourcePropertySymbolBase
Microsoft.CodeAnalysis.CSharp (3)
Symbols\Source\SourcePropertySymbol.cs (1)
15internal sealed class SourcePropertySymbol : SourcePropertySymbolBase
Symbols\Synthesized\Records\SynthesizedRecordEqualityContractProperty.cs (1)
14internal sealed class SynthesizedRecordEqualityContractProperty : SourcePropertySymbolBase
Symbols\Synthesized\Records\SynthesizedRecordPropertySymbol.cs (1)
12internal sealed class SynthesizedRecordPropertySymbol : SourcePropertySymbolBase
53 references to SourcePropertySymbolBase
Microsoft.CodeAnalysis.CSharp (53)
Binder\Binder_Statements.cs (3)
1764if (!HasSynthesizedBackingField(propertySymbol, out var sourceProperty)) 1778private static bool HasSynthesizedBackingField(PropertySymbol propertySymbol, [NotNullWhen(true)] out SourcePropertySymbolBase? sourcePropertyDefinition) 1785if (propertySymbol is SourcePropertySymbolBase { BackingField: { } } sourceProperty)
Compiler\MethodBodySynthesizer.cs (2)
178var property = (SourcePropertySymbolBase)accessor.AssociatedSymbol;
Compiler\MethodCompiler.cs (3)
543var sourceProperty = member as SourcePropertySymbolBase; 847private 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)
574var backingField = (access.PropertySymbol as SourcePropertySymbolBase)?.BackingField; 2267var backingField = (property as SourcePropertySymbolBase)?.BackingField;
FlowAnalysis\DefiniteAssignment.cs (3)
1107member = (propSymbol as SourcePropertySymbolBase)?.BackingField; 1439var backingField = (property as SourcePropertySymbolBase)?.BackingField; 2727var backingField = (property as SourcePropertySymbolBase)?.BackingField;
FlowAnalysis\NullableWalker.cs (7)
664var shouldForcePropertyAnalysis = !constructorEnforcesRequiredMembers && member is not SourcePropertySymbolBase { BackingField: not null } && member.IsRequired(); 763var usesFieldKeyword = symbol is SourcePropertySymbolBase { UsesFieldKeyword: true }; 820case FieldSymbol { AssociatedSymbol: SourcePropertySymbolBase { UsesFieldKeyword: false } prop }: 974=> requiredMember is SourcePropertySymbolBase { BackingField: { } backingField } ? backingField : requiredMember; 2160if (symbol is SynthesizedBackingFieldSymbol { AssociatedSymbol: SourcePropertySymbolBase { UsesFieldKeyword: false } property }) 2163else if (symbol is SourcePropertySymbolBase { UsesFieldKeyword: true, BackingField: { } backingField }) 10048return 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\Source\SourceMemberContainerSymbol_ImplementationChecks.cs (1)
592else if (property is SourcePropertySymbolBase sourceProperty)
Symbols\Source\SourcePropertyAccessorSymbol.cs (3)
19private readonly SourcePropertySymbolBase _property; 175SourcePropertySymbolBase property, 223NamedTypeSymbol containingType, SourcePropertySymbolBase property, DeclarationModifiers propertyModifiers, Location location,
Symbols\Source\SourcePropertySymbol.cs (2)
211protected override SourcePropertySymbolBase? BoundAttributesSource => SourcePartialDefinitionPart; 600Binder binder, SourcePropertySymbolBase owner, BaseParameterListSyntax? parameterSyntaxOpt, BindingDiagnosticBag diagnostics, bool addRefReadOnlyModifier)
Symbols\Source\SourcePropertySymbolBase.cs (9)
25/// Condensed flags storing useful information about the <see cref="SourcePropertySymbolBase"/> 316private static void CheckFieldKeywordUsage(SourcePropertySymbolBase property, BindingDiagnosticBag diagnostics) 606/// The method is called at the end of <see cref="SourcePropertySymbolBase"/> constructor. 607/// The implementation may depend only on information available from the <see cref="SourcePropertySymbolBase"/> type. 614/// The method is called at the end of <see cref="SourcePropertySymbolBase"/> constructor. 615/// The implementation may depend only on information available from the <see cref="SourcePropertySymbolBase"/> type. 863CheckFieldKeywordUsage((SourcePropertySymbolBase?)PartialImplementationPart ?? this, diagnostics); 1260protected abstract SourcePropertySymbolBase BoundAttributesSource { get; } 1287var copyFrom = this.BoundAttributesSource;
Symbols\SymbolExtensions.cs (1)
457else if (property is SourcePropertySymbolBase sourceProperty)
Symbols\Synthesized\Records\SynthesizedRecordEqualityContractProperty.cs (2)
57protected override SourcePropertySymbolBase? BoundAttributesSource => null; 135SourcePropertySymbolBase property,
Symbols\Synthesized\Records\SynthesizedRecordPropertySymbol.cs (1)
48protected override SourcePropertySymbolBase? BoundAttributesSource => null;
Symbols\Synthesized\SynthesizedAccessorValueParameterSymbol.cs (2)
38if (ContainingSymbol is SourcePropertyAccessorSymbol propertyAccessor && propertyAccessor.AssociatedSymbol is SourcePropertySymbolBase property) 84if (ContainingSymbol is SourcePropertyAccessorSymbol propertyAccessor && propertyAccessor.AssociatedSymbol is SourcePropertySymbolBase property)
Symbols\Synthesized\SynthesizedBackingFieldSymbol.cs (3)
80private readonly SourcePropertySymbolBase _property; 84SourcePropertySymbolBase property, 108var property = (_property as SourcePropertySymbol)?.SourcePartialDefinitionPart ?? _property;