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
53 references to SourcePropertySymbolBase
Microsoft.CodeAnalysis.CSharp (53)
Binder\Binder_Statements.cs (3)
1764
if (!HasSynthesizedBackingField(propertySymbol, out
var
sourceProperty))
1778
private static bool HasSynthesizedBackingField(PropertySymbol propertySymbol, [NotNullWhen(true)] out
SourcePropertySymbolBase
? sourcePropertyDefinition)
1785
if (propertySymbol is
SourcePropertySymbolBase
{ BackingField: { } } sourceProperty)
Compiler\MethodBodySynthesizer.cs (2)
178
var
property = (
SourcePropertySymbolBase
)accessor.AssociatedSymbol;
Compiler\MethodCompiler.cs (3)
543
var
sourceProperty = member as
SourcePropertySymbolBase
;
847
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;
2267
var backingField = (property as
SourcePropertySymbolBase
)?.BackingField;
FlowAnalysis\DefiniteAssignment.cs (3)
1107
member = (propSymbol as
SourcePropertySymbolBase
)?.BackingField;
1439
var backingField = (property as
SourcePropertySymbolBase
)?.BackingField;
2727
var backingField = (property as
SourcePropertySymbolBase
)?.BackingField;
FlowAnalysis\NullableWalker.cs (7)
664
var shouldForcePropertyAnalysis = !constructorEnforcesRequiredMembers && member is not
SourcePropertySymbolBase
{ BackingField: not null } && member.IsRequired();
763
var usesFieldKeyword = symbol is
SourcePropertySymbolBase
{ UsesFieldKeyword: true };
820
case FieldSymbol { AssociatedSymbol:
SourcePropertySymbolBase
{ UsesFieldKeyword: false } prop }:
974
=> requiredMember is
SourcePropertySymbolBase
{ BackingField: { } backingField } ? backingField : requiredMember;
2160
if (symbol is SynthesizedBackingFieldSymbol { AssociatedSymbol:
SourcePropertySymbolBase
{ UsesFieldKeyword: false } property })
2163
else if (symbol is
SourcePropertySymbolBase
{ UsesFieldKeyword: true, BackingField: { } backingField })
10048
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_ImplementationChecks.cs (1)
592
else if (property is
SourcePropertySymbolBase
sourceProperty)
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)
211
protected override
SourcePropertySymbolBase
? BoundAttributesSource => SourcePartialDefinitionPart;
600
Binder 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
"/>
316
private 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.
863
CheckFieldKeywordUsage((
SourcePropertySymbolBase
?)PartialImplementationPart ?? this, diagnostics);
1260
protected abstract
SourcePropertySymbolBase
BoundAttributesSource { get; }
1287
var
copyFrom = this.BoundAttributesSource;
Symbols\SymbolExtensions.cs (1)
457
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)
80
private readonly
SourcePropertySymbolBase
_property;
84
SourcePropertySymbolBase
property,
108
var
property = (_property as SourcePropertySymbol)?.SourcePartialDefinitionPart ?? _property;