22 overrides of AssociatedSymbol
Microsoft.CodeAnalysis.CSharp (22)
Lowering\IteratorRewriter\IteratorFinallyMethodSymbol.cs (1)
179
public override Symbol
AssociatedSymbol
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.SynthesizedMethodBase.cs (1)
138
public override Symbol
AssociatedSymbol
Symbols\ErrorMethodSymbol.cs (1)
114
public override Symbol
AssociatedSymbol
Symbols\FunctionPointers\FunctionPointerMethodSymbol.cs (1)
825
public override Symbol?
AssociatedSymbol
=> null;
Symbols\Metadata\PE\PEMethodSymbol.cs (1)
963
public override Symbol
AssociatedSymbol
=> _associatedPropertyOrEventOpt;
Symbols\NativeIntegerTypeSymbol.cs (1)
372
public override Symbol?
AssociatedSymbol
=> _associatedSymbol;
Symbols\ReducedExtensionMethodSymbol.cs (1)
462
public override Symbol
AssociatedSymbol
Symbols\Retargeting\RetargetingMethodSymbol.cs (1)
186
public override Symbol
AssociatedSymbol
Symbols\SignatureOnlyMethodSymbol.cs (1)
131
public override Symbol
AssociatedSymbol
{ get { throw ExceptionUtilities.Unreachable(); } }
Symbols\Source\LambdaSymbol.cs (1)
182
public override Symbol?
AssociatedSymbol
Symbols\Source\LocalFunctionSymbol.cs (1)
353
public override Symbol?
AssociatedSymbol
=> null;
Symbols\Source\SourceMemberMethodSymbol.cs (1)
508
public override Symbol
AssociatedSymbol
Symbols\SubstitutedMethodSymbol.cs (1)
218
public sealed override Symbol
AssociatedSymbol
Symbols\Synthesized\SynthesizedDelegateSymbol.cs (1)
193
public override Symbol?
AssociatedSymbol
Symbols\Synthesized\SynthesizedEntryPointSymbol.cs (1)
130
public override Symbol
AssociatedSymbol
Symbols\Synthesized\SynthesizedGlobalMethodSymbol.cs (1)
229
public override Symbol
AssociatedSymbol
Symbols\Synthesized\SynthesizedImplementationMethod.cs (1)
151
public sealed override Symbol
AssociatedSymbol
Symbols\Synthesized\SynthesizedInstanceConstructor.cs (1)
173
public sealed override Symbol
AssociatedSymbol
Symbols\Synthesized\SynthesizedInteractiveInitializerMethod.cs (1)
49
public override Symbol
AssociatedSymbol
Symbols\Synthesized\SynthesizedIntrinsicOperatorSymbol.cs (1)
283
public override Symbol
AssociatedSymbol
Symbols\Synthesized\SynthesizedSealedPropertyAccessor.cs (1)
246
public override Symbol
AssociatedSymbol
Symbols\Synthesized\SynthesizedStaticConstructor.cs (1)
165
public override Symbol?
AssociatedSymbol
43 references to AssociatedSymbol
Microsoft.CodeAnalysis.CSharp (43)
Binder\Binder_Expressions.cs (2)
1453
case MethodSymbol {
AssociatedSymbol
: SourcePropertySymbol property }:
1460
if (contextualAttributeBinder is { AttributeTarget: MethodSymbol {
AssociatedSymbol
: SourcePropertySymbol property } })
Binder\DecisionDagBuilder.cs (2)
327
var getLengthProperty = (PropertySymbol)pattern.GetLengthMethod.
AssociatedSymbol
;
329
var getItemProperty = (PropertySymbol)pattern.GetItemMethod.
AssociatedSymbol
;
Binder\ForEachLoopBinder.cs (2)
463
ReportDiagnosticsIfObsolete(diagnostics, builder.CurrentPropertyGetter.
AssociatedSymbol
, foreachKeyword, hasBaseReceiver: false);
1029
builder.ElementTypeWithAnnotations = ((PropertySymbol)builder.CurrentPropertyGetter.
AssociatedSymbol
).TypeWithAnnotations;
Compilation\MemberSemanticModel.cs (1)
990
currentProperty: ((PropertySymbol)enumeratorInfoOpt.CurrentPropertyGetter?.
AssociatedSymbol
).GetPublicSymbol(),
Compiler\ClsComplianceChecker.cs (2)
683
Symbol associated = ((MethodSymbol)container).
AssociatedSymbol
;
1127
Symbol associated = method.
AssociatedSymbol
;
Emitter\NoPia\EmbeddedTypesManager.cs (1)
509
Symbol propertyOrEvent = method.AdaptedMethodSymbol.
AssociatedSymbol
;
FlowAnalysis\NullableWalker.cs (1)
10832
valueProperty = getValue?.AsMember((NamedTypeSymbol)containingType)?.
AssociatedSymbol
;
Lowering\Instrumentation\CodeCoverageInstrumenter.cs (2)
159
{
AssociatedSymbol
: PropertySymbol { IsDirectlyExcludedFromCodeCoverage: true } } => true,
160
{
AssociatedSymbol
: EventSymbol { IsDirectlyExcludedFromCodeCoverage: true } } => true,
Lowering\StateMachineRewriter\SynthesizedStateMachineProperty.cs (2)
25
_name = ExplicitInterfaceHelpers.GetMemberName(interfacePropertyGetter.
AssociatedSymbol
.Name, interfacePropertyGetter.ContainingType, aliasQualifierOpt: null);
95
return (PropertySymbol)_getter.ExplicitInterfaceImplementations[0].
AssociatedSymbol
;
Operations\CSharpOperationFactory.cs (1)
1903
((PropertySymbol)enumeratorInfoOpt.CurrentPropertyGetter.
AssociatedSymbol
).GetPublicSymbol(),
Symbols\MemberSymbolExtensions.cs (3)
157
return (object)methodSymbol.
AssociatedSymbol
!= null;
167
var propertyOrEvent = methodSymbol.
AssociatedSymbol
;
663
member = ((MethodSymbol)member).
AssociatedSymbol
?? member;
Symbols\MethodSymbol.cs (1)
1220
ISymbolInternal IMethodSymbolInternal.AssociatedSymbol =>
AssociatedSymbol
;
Symbols\MethodSymbolExtensions.cs (1)
232
method.
AssociatedSymbol
is PropertySymbol { HasUnscopedRefAttribute: true };
Symbols\ObsoleteAttributeHelpers.cs (1)
87
symbol = ((MethodSymbol)symbol).
AssociatedSymbol
;
Symbols\OverriddenOrHiddenMembersHelpers.cs (3)
97
Symbol associatedPropertyOrEvent = accessor.
AssociatedSymbol
;
154
PEPropertySymbol { GetMethod: PEMethodSymbol { ExplicitlyOverriddenClassMethod: {
AssociatedSymbol
: PropertySymbol overriddenProperty } } } => overriddenProperty,
155
RetargetingPropertySymbol { GetMethod: RetargetingMethodSymbol { ExplicitlyOverriddenClassMethod: {
AssociatedSymbol
: PropertySymbol overriddenProperty } } } => overriddenProperty,
Symbols\PropertyOrEventSymbolExtensions.cs (1)
48
var associatedProperty = implementedAccessor.
AssociatedSymbol
as T;
Symbols\PublicModel\MethodSymbol.cs (1)
222
return _underlying.
AssociatedSymbol
.GetPublicSymbol();
Symbols\Retargeting\RetargetingMethodSymbol.cs (1)
190
var associatedPropertyOrEvent = _underlyingMethod.
AssociatedSymbol
;
Symbols\Source\SourceMemberContainerSymbol.cs (1)
1592
WhereAsArray(s => !s.IsIndexer() && (!s.IsAccessor() || ((MethodSymbol)s).
AssociatedSymbol
?.IsIndexer() != true)));
Symbols\Source\SourceMemberContainerSymbol_ImplementationChecks.cs (3)
237
var associatedPropertyOrEvent = interfaceMemberKind == SymbolKind.Method ? ((MethodSymbol)interfaceMember).
AssociatedSymbol
: null;
781
associatedPropertyOrEvent = ((MethodSymbol)overridingMember).
AssociatedSymbol
;
1674
var associatedPropertyOrEvent = ((MethodSymbol)hidingMember).
AssociatedSymbol
;
Symbols\SubstitutedMethodSymbol.cs (1)
222
Symbol underlying = OriginalDefinition.
AssociatedSymbol
;
Symbols\Symbol.cs (2)
682
if (!((PropertySymbol)method.
AssociatedSymbol
).CanCallMethodsDirectly())
737
return ((PropertySymbol)method.
AssociatedSymbol
).CanCallMethodsDirectly();
Symbols\Synthesized\ReadOnlyListType\SynthesizedReadOnlyListTypeSymbol.cs (4)
346
(PropertySymbol)((MethodSymbol)compilation.GetWellKnownTypeMember(WellKnownMember.System_Collections_IList__get_Item)!).
AssociatedSymbol
,
409
((PropertySymbol)((MethodSymbol)compilation.GetSpecialTypeMember(SpecialMember.System_Collections_Generic_IReadOnlyList_T__get_Item)!).
AssociatedSymbol
).AsMember(iReadOnlyListT),
450
((PropertySymbol)((MethodSymbol)compilation.GetSpecialTypeMember(SpecialMember.System_Collections_Generic_IList_T__get_Item)!).
AssociatedSymbol
).AsMember(iListT),
675
var listMember = (PropertySymbol)((MethodSymbol)containingType.GetFieldTypeMember(WellKnownMember.System_Collections_Generic_List_T__get_Item)).
AssociatedSymbol
;
Symbols\TypeSymbol.cs (4)
1505
? ((MethodSymbol)implementation).
AssociatedSymbol
1518
associated = bodyOfSynthesizedMethodImpl.
AssociatedSymbol
;
1544
Symbol associatedInterfacePropertyOrEvent = interfaceMethod.
AssociatedSymbol
;
1896
checkRefStructInterfacesFeatureAvailabilityOnUnscopedRefAttribute(implementingMethod.HasUnscopedRefAttribute ? implementingMethod : implementingMethod.
AssociatedSymbol
, diagnostics);