1 type derived from SourcePropertyAccessorSymbol
Microsoft.CodeAnalysis.CSharp (1)
Symbols\Synthesized\Records\SynthesizedRecordEqualityContractProperty.cs (1)
131
internal sealed class GetAccessorSymbol :
SourcePropertyAccessorSymbol
1 instantiation of SourcePropertyAccessorSymbol
Microsoft.CodeAnalysis.CSharp (1)
Symbols\Source\SourcePropertyAccessorSymbol.cs (1)
95
return new
SourcePropertyAccessorSymbol
(
58 references to SourcePropertyAccessorSymbol
Microsoft.CodeAnalysis.CSharp (58)
Binder\LocalBinderFactory.cs (2)
311
SourcePropertyAccessorSymbol
{ MethodKind: MethodKind.PropertySet } setter => getSetterParameters(setter),
365
static ImmutableArray<ParameterSymbol> getSetterParameters(
SourcePropertyAccessorSymbol
setter)
Compiler\MethodCompiler.cs (1)
1895
if (sourceMethod is
SourcePropertyAccessorSymbol
{ IsAutoPropertyAccessor: true })
Lowering\LocalRewriter\LocalRewriter_Event.cs (1)
275
string accessorName =
SourcePropertyAccessorSymbol
.GetAccessorName(invocationListProperty.Name,
SymbolDisplay\SymbolDisplayVisitor.Members.cs (1)
120
if ((method as Symbols.PublicModel.MethodSymbol)?.UnderlyingMethodSymbol is
SourcePropertyAccessorSymbol
sourceAccessor &&
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.PropertyAccessorSymbol.cs (1)
24
: base(property.ContainingType,
SourcePropertyAccessorSymbol
.GetAccessorName(property.Name, getNotSet: true, isWinMdOutput: false))
Symbols\MemberSymbolExtensions.cs (3)
554
or
SourcePropertyAccessorSymbol
{ IsPartial: true };
563
or
SourcePropertyAccessorSymbol
{ IsPartialImplementation: true };
572
or
SourcePropertyAccessorSymbol
{ IsPartialDefinition: true };
Symbols\Source\SourceMemberContainerSymbol.cs (13)
3633
case (
SourcePropertyAccessorSymbol
,
SourcePropertyAccessorSymbol
):
3639
Debug.Assert(symbol is SourceOrdinaryMethodSymbol or SourcePropertySymbol or
SourcePropertyAccessorSymbol
);
3640
Debug.Assert(prev is SourceOrdinaryMethodSymbol or SourcePropertySymbol or
SourcePropertyAccessorSymbol
);
3671
case
SourcePropertyAccessorSymbol
:
3723
mergeAccessors(ref membersByName, (
SourcePropertyAccessorSymbol
?)currentProperty.GetMethod, (
SourcePropertyAccessorSymbol
?)prevProperty.GetMethod);
3724
mergeAccessors(ref membersByName, (
SourcePropertyAccessorSymbol
?)currentProperty.SetMethod, (
SourcePropertyAccessorSymbol
?)prevProperty.SetMethod);
3728
void mergeAccessors(ref Dictionary<ReadOnlyMemory<char>, ImmutableArray<Symbol>> membersByName,
SourcePropertyAccessorSymbol
? currentAccessor,
SourcePropertyAccessorSymbol
? prevAccessor)
3733
var
implementationAccessor = currentProperty.IsPartialDefinition ? prevAccessor : currentAccessor;
3848
accessorName =
SourcePropertyAccessorSymbol
.GetAccessorName(propertyName,
Symbols\Source\SourcePropertyAccessorSymbol.cs (7)
28
public static
SourcePropertyAccessorSymbol
CreateAccessorSymbol(
65
public static
SourcePropertyAccessorSymbol
CreateAccessorSymbol(
84
public static
SourcePropertyAccessorSymbol
CreateAccessorSymbol(
112
public static
SourcePropertyAccessorSymbol
CreateAccessorSymbol(
638
return OneOrMany.Create(AttributeDeclarationList, ((
SourcePropertyAccessorSymbol
)implementation).AttributeDeclarationList);
647
return OneOrMany.Create(AttributeDeclarationList, ((
SourcePropertyAccessorSymbol
)definition).AttributeDeclarationList);
847
internal void PartialAccessorChecks(
SourcePropertyAccessorSymbol
implementationAccessor, BindingDiagnosticBag diagnostics)
Symbols\Source\SourcePropertySymbol.cs (10)
490
protected override
SourcePropertyAccessorSymbol
CreateGetAccessorSymbol(bool isAutoPropertyAccessor, BindingDiagnosticBag diagnostics)
507
protected override
SourcePropertyAccessorSymbol
CreateSetAccessorSymbol(bool isAutoPropertyAccessor, BindingDiagnosticBag diagnostics)
515
private
SourcePropertyAccessorSymbol
CreateAccessorSymbol(
520
return
SourcePropertyAccessorSymbol
.CreateAccessorSymbol(
529
private
SourcePropertyAccessorSymbol
CreateExpressionBodiedAccessor(
533
return
SourcePropertyAccessorSymbol
.CreateAccessorSymbol(
769
((
SourcePropertyAccessorSymbol
)definitionGetAccessor).PartialAccessorChecks((
SourcePropertyAccessorSymbol
)implementationGetAccessor, diagnostics);
774
((
SourcePropertyAccessorSymbol
)definitionSetAccessor).PartialAccessorChecks((
SourcePropertyAccessorSymbol
)implementationSetAccessor, diagnostics);
Symbols\Source\SourcePropertySymbolBase.cs (8)
51
private readonly
SourcePropertyAccessorSymbol
? _getMethod;
52
private readonly
SourcePropertyAccessorSymbol
? _setMethod;
324
SourcePropertyAccessorSymbol
? accessorToBlame = null;
609
protected abstract
SourcePropertyAccessorSymbol
CreateGetAccessorSymbol(
617
protected abstract
SourcePropertyAccessorSymbol
CreateSetAccessorSymbol(
970
var
accessor = _getMethod ?? _setMethod;
1127
private void CheckAccessibilityMoreRestrictive(
SourcePropertyAccessorSymbol
accessor, BindingDiagnosticBag diagnostics)
1150
private static void CheckAbstractPropertyAccessorNotPrivate(
SourcePropertyAccessorSymbol
accessor, BindingDiagnosticBag diagnostics)
Symbols\Synthesized\Records\SynthesizedRecordEqualityContractProperty.cs (3)
64
protected override
SourcePropertyAccessorSymbol
CreateGetAccessorSymbol(bool isAutoPropertyAccessor, BindingDiagnosticBag diagnostics)
66
return
SourcePropertyAccessorSymbol
.CreateAccessorSymbol(
75
protected override
SourcePropertyAccessorSymbol
CreateSetAccessorSymbol(bool isAutoPropertyAccessor, BindingDiagnosticBag diagnostics)
Symbols\Synthesized\Records\SynthesizedRecordPropertySymbol.cs (4)
58
protected override
SourcePropertyAccessorSymbol
CreateGetAccessorSymbol(bool isAutoPropertyAccessor, BindingDiagnosticBag diagnostics)
64
protected override
SourcePropertyAccessorSymbol
CreateSetAccessorSymbol(bool isAutoPropertyAccessor, BindingDiagnosticBag diagnostics)
76
private
SourcePropertyAccessorSymbol
CreateAccessorSymbol(
82
return
SourcePropertyAccessorSymbol
.CreateAccessorSymbol(
Symbols\Synthesized\SynthesizedAccessorValueParameterSymbol.cs (4)
38
if (ContainingSymbol is
SourcePropertyAccessorSymbol
propertyAccessor && propertyAccessor.AssociatedSymbol is SourcePropertySymbolBase property)
84
if (ContainingSymbol is
SourcePropertyAccessorSymbol
propertyAccessor && propertyAccessor.AssociatedSymbol is SourcePropertySymbolBase property)
101
public SynthesizedPropertyAccessorValueParameterSymbol(
SourcePropertyAccessorSymbol
accessor, int ordinal)
107
public override TypeWithAnnotations TypeWithAnnotations => ((PropertySymbol)((
SourcePropertyAccessorSymbol
)ContainingSymbol).AssociatedSymbol).TypeWithAnnotations;