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