4 types derived from SourcePropertySymbolBase
Microsoft.CodeAnalysis.CSharp (4)
Symbols\Source\SourcePropertySymbol.cs (1)
16internal sealed class SourcePropertySymbol : SourcePropertySymbolBase
Symbols\Synthesized\Records\SynthesizedRecordEqualityContractProperty.cs (1)
14internal sealed class SynthesizedRecordEqualityContractProperty : SourcePropertySymbolBase
Symbols\Synthesized\Records\SynthesizedRecordPropertySymbol.cs (1)
13internal sealed class SynthesizedRecordPropertySymbol : SourcePropertySymbolBase
Symbols\Synthesized\SynthesizedUnionValuePropertySymbol.cs (1)
12internal sealed class SynthesizedUnionValuePropertySymbol : SourcePropertySymbolBase
61 references to SourcePropertySymbolBase
Microsoft.CodeAnalysis.CSharp (61)
Binder\Binder_Statements.cs (3)
1807if (!HasSynthesizedBackingField(propertySymbol, out var sourceProperty)) 1821private static bool HasSynthesizedBackingField(PropertySymbol propertySymbol, [NotNullWhen(true)] out SourcePropertySymbolBase? sourcePropertyDefinition) 1828if (propertySymbol is SourcePropertySymbolBase { BackingField: { } } sourceProperty)
Compiler\MethodBodySynthesizer.cs (2)
180var property = (SourcePropertySymbolBase)accessor.AssociatedSymbol;
Compiler\MethodCompiler.cs (3)
568var sourceProperty = member as SourcePropertySymbolBase; 889private 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; 293var sourceProperty = AdaptedPropertySymbol as SourcePropertySymbolBase;
FlowAnalysis\AbstractFlowPass.cs (2)
574var backingField = (access.PropertySymbol as SourcePropertySymbolBase)?.BackingField; 2275var backingField = (property as SourcePropertySymbolBase)?.BackingField;
FlowAnalysis\DefiniteAssignment.cs (3)
1060member = (propSymbol as SourcePropertySymbolBase)?.BackingField; 1392var backingField = (property as SourcePropertySymbolBase)?.BackingField; 2688var backingField = (property as SourcePropertySymbolBase)?.BackingField;
FlowAnalysis\NullableWalker.cs (9)
719var shouldForcePropertyAnalysis = !constructorEnforcesRequiredMembers && member is not SourcePropertySymbolBase { BackingField: not null } && member.IsRequired(); 818var (usesFieldKeyword, annotations) = field != null && symbol is SourcePropertySymbolBase { UsesFieldKeyword: true } 876case FieldSymbol { AssociatedSymbol: SourcePropertySymbolBase { UsesFieldKeyword: false } prop }: 1066=> requiredMember is SourcePropertySymbolBase { BackingField: { } backingField } ? backingField : requiredMember; 1078var symbolAnnotations = property is SourcePropertySymbolBase { UsesFieldKeyword: true, BackingField: { } field } 2321if (symbol is SynthesizedBackingFieldSymbol { AssociatedSymbol: SourcePropertySymbolBase { UsesFieldKeyword: false } property }) 2324else if (symbol is SourcePropertySymbolBase { UsesFieldKeyword: true, BackingField: { } backingField }) 11249if (left is BoundPropertyAccess { PropertySymbol: SourcePropertySymbolBase { SetMethod: null, UsesFieldKeyword: true } property }) 11362return field.AssociatedSymbol is SourcePropertySymbolBase { UsesFieldKeyword: false } property ?
Lowering\LocalRewriter\LocalRewriter_AssignmentOperator.cs (2)
315var autoProp = (SourcePropertySymbolBase)property.OriginalDefinition;
SymbolDisplay\SymbolDisplayVisitor.Members.cs (1)
129(propertyOpt as Symbols.PublicModel.PropertySymbol)?.UnderlyingSymbol is SourcePropertySymbolBase sourceProperty)
Symbols\Extensions\SourceExtensionImplementationMethodSymbol.cs (1)
69if (_originalMethod is SourcePropertyAccessorSymbol { AssociatedSymbol: SourcePropertySymbolBase extensionProperty })
Symbols\Source\SourceMemberContainerSymbol.cs (1)
1843else if (member is FieldSymbol { AssociatedSymbol: SourcePropertySymbolBase { PartialDefinitionPart: PropertySymbol definition } implementation } &&
Symbols\Source\SourceMemberContainerSymbol_ImplementationChecks.cs (1)
608else if (property is SourcePropertySymbolBase sourceProperty)
Symbols\Source\SourceMethodSymbol.cs (2)
114return (HasUnsafeModifier || AssociatedSymbol is SourcePropertySymbolBase { HasUnsafeModifier: true }) 265if (target is SourcePropertyAccessorSymbol { AssociatedSymbol: SourcePropertySymbolBase property })
Symbols\Source\SourceNamedTypeSymbol.cs (1)
2126SourcePropertySymbolBase prop => prop.HasUnsafeModifier || prop.HasSafeModifier,
Symbols\Source\SourcePropertyAccessorSymbol.cs (3)
20private readonly SourcePropertySymbolBase _property; 201SourcePropertySymbolBase property, 249NamedTypeSymbol containingType, SourcePropertySymbolBase property, DeclarationModifiers propertyModifiers, Location location,
Symbols\Source\SourcePropertySymbol.cs (2)
224protected override SourcePropertySymbolBase? BoundAttributesSource => SourcePartialDefinitionPart; 619Binder binder, SourcePropertySymbolBase owner, BaseParameterListSyntax? parameterSyntaxOpt, BindingDiagnosticBag diagnostics, bool addRefReadOnlyModifier)
Symbols\Source\SourcePropertySymbolBase.cs (9)
28/// Condensed flags storing useful information about the <see cref="SourcePropertySymbolBase"/> 319private static void CheckFieldKeywordUsage(SourcePropertySymbolBase property, BindingDiagnosticBag diagnostics) 633/// The method is called at the end of <see cref="SourcePropertySymbolBase"/> constructor. 634/// The implementation may depend only on information available from the <see cref="SourcePropertySymbolBase"/> type. 641/// The method is called at the end of <see cref="SourcePropertySymbolBase"/> constructor. 642/// The implementation may depend only on information available from the <see cref="SourcePropertySymbolBase"/> type. 887CheckFieldKeywordUsage((SourcePropertySymbolBase?)PartialImplementationPart ?? this, diagnostics); 1323protected abstract SourcePropertySymbolBase BoundAttributesSource { get; } 1350var copyFrom = this.BoundAttributesSource;
Symbols\SymbolExtensions.cs (1)
445else if (property is SourcePropertySymbolBase sourceProperty)
Symbols\Synthesized\Records\SynthesizedRecordEqualityContractProperty.cs (2)
59protected override SourcePropertySymbolBase? BoundAttributesSource => null; 145SourcePropertySymbolBase 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;
Symbols\Synthesized\SynthesizedUnionValuePropertySymbol.cs (1)
45protected override SourcePropertySymbolBase? BoundAttributesSource => null;