3 types derived from SourcePropertySymbolBase
Microsoft.CodeAnalysis.CSharp (3)
Symbols\Source\SourcePropertySymbol.cs (1)
15
internal sealed class SourcePropertySymbol :
SourcePropertySymbolBase
Symbols\Synthesized\Records\SynthesizedRecordEqualityContractProperty.cs (1)
14
internal sealed class SynthesizedRecordEqualityContractProperty :
SourcePropertySymbolBase
Symbols\Synthesized\Records\SynthesizedRecordPropertySymbol.cs (1)
12
internal sealed class SynthesizedRecordPropertySymbol :
SourcePropertySymbolBase
57 references to SourcePropertySymbolBase
Microsoft.CodeAnalysis.CSharp (57)
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)
555
var
sourceProperty = member as
SourcePropertySymbolBase
;
862
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)
574
var backingField = (access.PropertySymbol as
SourcePropertySymbolBase
)?.BackingField;
2274
var backingField = (property as
SourcePropertySymbolBase
)?.BackingField;
FlowAnalysis\DefiniteAssignment.cs (3)
1122
member = (propSymbol as
SourcePropertySymbolBase
)?.BackingField;
1454
var backingField = (property as
SourcePropertySymbolBase
)?.BackingField;
2754
var backingField = (property as
SourcePropertySymbolBase
)?.BackingField;
FlowAnalysis\NullableWalker.cs (9)
674
var shouldForcePropertyAnalysis = !constructorEnforcesRequiredMembers && member is not
SourcePropertySymbolBase
{ BackingField: not null } && member.IsRequired();
773
var usesFieldKeyword = symbol is
SourcePropertySymbolBase
{ UsesFieldKeyword: true };
830
case FieldSymbol { AssociatedSymbol:
SourcePropertySymbolBase
{ UsesFieldKeyword: false } prop }:
1020
=> requiredMember is
SourcePropertySymbolBase
{ BackingField: { } backingField } ? backingField : requiredMember;
1032
var symbolAnnotations = property is
SourcePropertySymbolBase
{ UsesFieldKeyword: true, BackingField: { } field }
2243
if (symbol is SynthesizedBackingFieldSymbol { AssociatedSymbol:
SourcePropertySymbolBase
{ UsesFieldKeyword: false } property })
2246
else if (symbol is
SourcePropertySymbolBase
{ UsesFieldKeyword: true, BackingField: { } backingField })
10113
if (left is BoundPropertyAccess { PropertySymbol:
SourcePropertySymbolBase
{ SetMethod: null, UsesFieldKeyword: true } property })
10228
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\Source\SourceMemberContainerSymbol.cs (1)
1710
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)
19
private readonly
SourcePropertySymbolBase
_property;
175
SourcePropertySymbolBase
property,
223
NamedTypeSymbol containingType,
SourcePropertySymbolBase
property, DeclarationModifiers propertyModifiers, Location location,
Symbols\Source\SourcePropertySymbol.cs (2)
224
protected override
SourcePropertySymbolBase
? BoundAttributesSource => SourcePartialDefinitionPart;
622
Binder 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
"/>
317
private static void CheckFieldKeywordUsage(
SourcePropertySymbolBase
property, BindingDiagnosticBag diagnostics)
629
/// The method is called at the end of <see cref="
SourcePropertySymbolBase
"/> constructor.
630
/// The implementation may depend only on information available from the <see cref="
SourcePropertySymbolBase
"/> type.
637
/// The method is called at the end of <see cref="
SourcePropertySymbolBase
"/> constructor.
638
/// The implementation may depend only on information available from the <see cref="
SourcePropertySymbolBase
"/> type.
878
CheckFieldKeywordUsage((
SourcePropertySymbolBase
?)PartialImplementationPart ?? this, diagnostics);
1279
protected abstract
SourcePropertySymbolBase
BoundAttributesSource { get; }
1306
var
copyFrom = this.BoundAttributesSource;
Symbols\SymbolExtensions.cs (1)
444
else if (property is
SourcePropertySymbolBase
sourceProperty)
Symbols\Synthesized\Records\SynthesizedRecordEqualityContractProperty.cs (2)
57
protected override
SourcePropertySymbolBase
? BoundAttributesSource => null;
135
SourcePropertySymbolBase
property,
Symbols\Synthesized\Records\SynthesizedRecordPropertySymbol.cs (1)
48
protected override
SourcePropertySymbolBase
? BoundAttributesSource => null;
Symbols\Synthesized\SynthesizedAccessorValueParameterSymbol.cs (2)
38
if (ContainingSymbol is SourcePropertyAccessorSymbol propertyAccessor && propertyAccessor.AssociatedSymbol is
SourcePropertySymbolBase
property)
84
if (ContainingSymbol is SourcePropertyAccessorSymbol propertyAccessor && propertyAccessor.AssociatedSymbol is
SourcePropertySymbolBase
property)
Symbols\Synthesized\SynthesizedBackingFieldSymbol.cs (3)
82
private readonly
SourcePropertySymbolBase
_property;
87
SourcePropertySymbolBase
property,
111
var
property = (_property as SourcePropertySymbol)?.SourcePartialDefinitionPart ?? _property;