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