26 overrides of AssociatedSymbol
Microsoft.CodeAnalysis.CSharp (26)
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)
116
public override Symbol
AssociatedSymbol
Symbols\Extensions\RewrittenLambdaOrLocalFunctionSymbol.cs (1)
24
public override Symbol?
AssociatedSymbol
=> null;
Symbols\Extensions\SourceExtensionImplementationMethodSymbol.cs (1)
117
public override Symbol?
AssociatedSymbol
=> null;
Symbols\FunctionPointers\FunctionPointerMethodSymbol.cs (1)
825
public override Symbol?
AssociatedSymbol
=> null;
Symbols\Metadata\PE\PEMethodSymbol.cs (1)
992
public override Symbol
AssociatedSymbol
=> _associatedPropertyOrEventOpt;
Symbols\NativeIntegerTypeSymbol.cs (1)
408
public override Symbol?
AssociatedSymbol
=> _associatedSymbol;
Symbols\ReducedExtensionMethodSymbol.cs (1)
465
public override Symbol
AssociatedSymbol
Symbols\Retargeting\RetargetingMethodSymbol.cs (1)
190
public override Symbol
AssociatedSymbol
Symbols\SignatureOnlyMethodSymbol.cs (1)
133
public override Symbol
AssociatedSymbol
{ get { throw ExceptionUtilities.Unreachable(); } }
Symbols\Source\LambdaSymbol.cs (1)
198
public override Symbol?
AssociatedSymbol
Symbols\Source\LocalFunctionSymbol.cs (1)
383
public override Symbol?
AssociatedSymbol
=> null;
Symbols\Source\SourceMemberMethodSymbol.cs (1)
536
public override Symbol
AssociatedSymbol
Symbols\SubstitutedMethodSymbol.cs (1)
226
public sealed override Symbol
AssociatedSymbol
Symbols\Synthesized\SynthesizedCollectionBuilderProjectedMethodSymbol.cs (1)
113
public override Symbol
AssociatedSymbol
=> throw ExceptionUtilities.Unreachable();
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)
233
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)
286
public override Symbol
AssociatedSymbol
Symbols\Synthesized\SynthesizedPropertySymbol.cs (1)
60
public override Symbol
AssociatedSymbol
=> _property;
Symbols\Synthesized\SynthesizedSealedPropertyAccessor.cs (1)
246
public override Symbol
AssociatedSymbol
Symbols\Synthesized\SynthesizedStaticConstructor.cs (1)
167
public override Symbol?
AssociatedSymbol
51 references to AssociatedSymbol
Microsoft.CodeAnalysis.CSharp (51)
Binder\Binder_Expressions.cs (4)
1492
case MethodSymbol {
AssociatedSymbol
: SourcePropertySymbol property }:
1495
case MethodSymbol {
AssociatedSymbol
.OriginalDefinition: PEPropertySymbol property } method when
1505
if (contextualAttributeBinder is { AttributeTarget: MethodSymbol {
AssociatedSymbol
: SourcePropertySymbol property } })
1567
ContainingMember() is MethodSymbol { MethodKind: MethodKind.PropertyGet or MethodKind.PropertySet,
AssociatedSymbol
: PropertySymbol { IsIndexer: false } })
Binder\DecisionDagBuilder.cs (2)
498
var getLengthProperty = (PropertySymbol)pattern.GetLengthMethod.
AssociatedSymbol
;
500
var getItemProperty = (PropertySymbol)pattern.GetItemMethod.
AssociatedSymbol
;
Binder\ForEachLoopBinder.cs (2)
474
ReportDiagnosticsIfObsolete(diagnostics, builder.CurrentPropertyGetter.
AssociatedSymbol
, foreachKeyword, hasBaseReceiver: false);
1057
builder.ElementTypeWithAnnotations = ((PropertySymbol)builder.CurrentPropertyGetter.
AssociatedSymbol
).TypeWithAnnotations;
Compilation\MemberSemanticModel.cs (1)
1028
currentProperty: ((PropertySymbol)enumeratorInfoOpt.CurrentPropertyGetter?.
AssociatedSymbol
).GetPublicSymbol(),
Compiler\ClsComplianceChecker.cs (2)
683
Symbol associated = ((MethodSymbol)container).
AssociatedSymbol
;
1127
Symbol associated = method.
AssociatedSymbol
;
Compiler\DocumentationCommentCompiler.cs (1)
344
? underlyingMethod.
AssociatedSymbol
Emitter\NoPia\EmbeddedTypesManager.cs (1)
561
Symbol propertyOrEvent = method.AdaptedMethodSymbol.
AssociatedSymbol
;
FlowAnalysis\NullableWalker.cs (1)
12337
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)
1969
((PropertySymbol)enumeratorInfoOpt.CurrentPropertyGetter.
AssociatedSymbol
).GetPublicSymbol(),
Symbols\Extensions\RewrittenLambdaOrLocalFunctionSymbol.cs (1)
19
Debug.Assert(lambdaOrLocalFunctionSymbol.
AssociatedSymbol
is null);
Symbols\MemberSymbolExtensions.cs (3)
403
return (object)methodSymbol.
AssociatedSymbol
!= null;
413
var propertyOrEvent = methodSymbol.
AssociatedSymbol
;
944
member = ((MethodSymbol)member).
AssociatedSymbol
?? member;
Symbols\MethodSymbol.cs (1)
1237
ISymbolInternal IMethodSymbolInternal.AssociatedSymbol =>
AssociatedSymbol
;
Symbols\MethodSymbolExtensions.cs (1)
234
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)
49
var associatedProperty = implementedAccessor.
AssociatedSymbol
as T;
Symbols\PublicModel\MethodSymbol.cs (1)
236
return _underlying.
AssociatedSymbol
.GetPublicSymbol();
Symbols\Retargeting\RetargetingMethodSymbol.cs (1)
194
var associatedPropertyOrEvent = _underlyingMethod.
AssociatedSymbol
;
Symbols\Source\SourceMemberContainerSymbol.cs (3)
1738
WhereAsArray(s => !s.IsIndexer() && (!s.IsAccessor() || ((MethodSymbol)s).
AssociatedSymbol
?.IsIndexer() != true)));
2364
(d.Location == arg.method1.GetFirstLocation() || d.Location == arg.underlying1.
AssociatedSymbol
?.TryGetFirstLocation() ||
2365
d.Location == arg.method2.GetFirstLocation() || d.Location == arg.underlying2.
AssociatedSymbol
?.TryGetFirstLocation()),
Symbols\Source\SourceMemberContainerSymbol_ImplementationChecks.cs (3)
237
var associatedPropertyOrEvent = interfaceMemberKind == SymbolKind.Method ? ((MethodSymbol)interfaceMember).
AssociatedSymbol
: null;
797
associatedPropertyOrEvent = ((MethodSymbol)overridingMember).
AssociatedSymbol
;
1746
var associatedPropertyOrEvent = ((MethodSymbol)hidingMember).
AssociatedSymbol
;
Symbols\Source\SourceMethodSymbol.cs (2)
116
Debug.Assert(
AssociatedSymbol
?.CallerUnsafeMode != CallerUnsafeMode.Implicit);
123
return HasUnsafeModifier || IsExtern ||
AssociatedSymbol
?.CallerUnsafeMode == CallerUnsafeMode.Explicit
Symbols\SubstitutedMethodSymbol.cs (1)
230
Symbol underlying = OriginalDefinition.
AssociatedSymbol
;
Symbols\Symbol.cs (2)
689
if (!((PropertySymbol)method.
AssociatedSymbol
).CanCallMethodsDirectly())
744
return ((PropertySymbol)method.
AssociatedSymbol
).CanCallMethodsDirectly();
Symbols\Synthesized\ReadOnlyListType\SynthesizedReadOnlyListTypeSymbol.cs (4)
347
(PropertySymbol)((MethodSymbol)compilation.GetWellKnownTypeMember(WellKnownMember.System_Collections_IList__get_Item)!).
AssociatedSymbol
,
410
((PropertySymbol)((MethodSymbol)compilation.GetSpecialTypeMember(SpecialMember.System_Collections_Generic_IReadOnlyList_T__get_Item)!).
AssociatedSymbol
).AsMember(iReadOnlyListT),
451
((PropertySymbol)((MethodSymbol)compilation.GetSpecialTypeMember(SpecialMember.System_Collections_Generic_IList_T__get_Item)!).
AssociatedSymbol
).AsMember(iListT),
710
var listMember = (PropertySymbol)((MethodSymbol)containingType.GetFieldTypeMember(WellKnownMember.System_Collections_Generic_List_T__get_Item)).
AssociatedSymbol
;
Symbols\TypeSymbol.cs (4)
1515
? ((MethodSymbol)implementation).
AssociatedSymbol
1528
associated = bodyOfSynthesizedMethodImpl.
AssociatedSymbol
;
1554
Symbol associatedInterfacePropertyOrEvent = interfaceMethod.
AssociatedSymbol
;
1923
checkRefStructInterfacesFeatureAvailabilityOnUnscopedRefAttribute(implementingMethod.HasUnscopedRefAttribute ? implementingMethod : implementingMethod.
AssociatedSymbol
, diagnostics);