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
55 references to SourcePropertySymbolBase
Microsoft.CodeAnalysis.CSharp (55)
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)
544var sourceProperty = member as SourcePropertySymbolBase; 851private 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 (8)
665var shouldForcePropertyAnalysis = !constructorEnforcesRequiredMembers && member is not SourcePropertySymbolBase { BackingField: not null } && member.IsRequired(); 764var usesFieldKeyword = symbol is SourcePropertySymbolBase { UsesFieldKeyword: true }; 821case FieldSymbol { AssociatedSymbol: SourcePropertySymbolBase { UsesFieldKeyword: false } prop }: 1011=> requiredMember is SourcePropertySymbolBase { BackingField: { } backingField } ? backingField : requiredMember; 1023var symbolAnnotations = property is SourcePropertySymbolBase { UsesFieldKeyword: true, BackingField: { } field } 2221if (symbol is SynthesizedBackingFieldSymbol { AssociatedSymbol: SourcePropertySymbolBase { UsesFieldKeyword: false } property }) 2224else if (symbol is SourcePropertySymbolBase { UsesFieldKeyword: true, BackingField: { } backingField }) 10112return 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.cs (1)
1698else if (member is FieldSymbol { AssociatedSymbol: SourcePropertySymbolBase { PartialDefinitionPart: PropertySymbol definition } implementation } &&
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)
26/// Condensed flags storing useful information about the <see cref="SourcePropertySymbolBase"/> 317private static void CheckFieldKeywordUsage(SourcePropertySymbolBase property, BindingDiagnosticBag diagnostics) 607/// The method is called at the end of <see cref="SourcePropertySymbolBase"/> constructor. 608/// The implementation may depend only on information available from the <see cref="SourcePropertySymbolBase"/> type. 615/// The method is called at the end of <see cref="SourcePropertySymbolBase"/> constructor. 616/// The implementation may depend only on information available from the <see cref="SourcePropertySymbolBase"/> type. 856CheckFieldKeywordUsage((SourcePropertySymbolBase?)PartialImplementationPart ?? this, diagnostics); 1253protected abstract SourcePropertySymbolBase BoundAttributesSource { get; } 1280var 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;