24 overrides of AssociatedSymbol
Microsoft.CodeAnalysis.CSharp (24)
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)
23
public override Symbol?
AssociatedSymbol
=> null;
Symbols\Extensions\SourceExtensionImplementationMethodSymbol.cs (1)
119
public override Symbol?
AssociatedSymbol
=> null;
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)
379
public override Symbol?
AssociatedSymbol
=> _associatedSymbol;
Symbols\ReducedExtensionMethodSymbol.cs (1)
464
public override Symbol
AssociatedSymbol
Symbols\Retargeting\RetargetingMethodSymbol.cs (1)
186
public override Symbol
AssociatedSymbol
Symbols\SignatureOnlyMethodSymbol.cs (1)
133
public override Symbol
AssociatedSymbol
{ get { throw ExceptionUtilities.Unreachable(); } }
Symbols\Source\LambdaSymbol.cs (1)
183
public override Symbol?
AssociatedSymbol
Symbols\Source\LocalFunctionSymbol.cs (1)
359
public override Symbol?
AssociatedSymbol
=> null;
Symbols\Source\SourceMemberMethodSymbol.cs (1)
536
public override Symbol
AssociatedSymbol
Symbols\SubstitutedMethodSymbol.cs (1)
221
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)
231
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)
284
public override Symbol
AssociatedSymbol
Symbols\Synthesized\SynthesizedSealedPropertyAccessor.cs (1)
246
public override Symbol
AssociatedSymbol
Symbols\Synthesized\SynthesizedStaticConstructor.cs (1)
165
public override Symbol?
AssociatedSymbol
82 references to AssociatedSymbol
Microsoft.CodeAnalysis.CSharp (48)
Binder\Binder_Expressions.cs (3)
1460
case MethodSymbol {
AssociatedSymbol
: SourcePropertySymbol property }:
1467
if (contextualAttributeBinder is { AttributeTarget: MethodSymbol {
AssociatedSymbol
: SourcePropertySymbol property } })
1513
ContainingMember() is MethodSymbol { MethodKind: MethodKind.PropertyGet or MethodKind.PropertySet,
AssociatedSymbol
: PropertySymbol { IsIndexer: false } })
Binder\DecisionDagBuilder.cs (2)
327
var getLengthProperty = (PropertySymbol)pattern.GetLengthMethod.
AssociatedSymbol
;
329
var getItemProperty = (PropertySymbol)pattern.GetItemMethod.
AssociatedSymbol
;
Binder\ForEachLoopBinder.cs (2)
475
ReportDiagnosticsIfObsolete(diagnostics, builder.CurrentPropertyGetter.
AssociatedSymbol
, foreachKeyword, hasBaseReceiver: false);
1058
builder.ElementTypeWithAnnotations = ((PropertySymbol)builder.CurrentPropertyGetter.
AssociatedSymbol
).TypeWithAnnotations;
Compilation\MemberSemanticModel.cs (1)
991
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)
246
? underlyingMethod.
AssociatedSymbol
Emitter\NoPia\EmbeddedTypesManager.cs (1)
508
Symbol propertyOrEvent = method.AdaptedMethodSymbol.
AssociatedSymbol
;
FlowAnalysis\NullableWalker.cs (1)
11521
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\Extensions\RewrittenLambdaOrLocalFunctionSymbol.cs (1)
18
Debug.Assert(lambdaOrLocalFunctionSymbol.
AssociatedSymbol
is null);
Symbols\MemberSymbolExtensions.cs (3)
391
return (object)methodSymbol.
AssociatedSymbol
!= null;
401
var propertyOrEvent = methodSymbol.
AssociatedSymbol
;
932
member = ((MethodSymbol)member).
AssociatedSymbol
?? member;
Symbols\MethodSymbol.cs (1)
1224
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)
222
return _underlying.
AssociatedSymbol
.GetPublicSymbol();
Symbols\Retargeting\RetargetingMethodSymbol.cs (1)
190
var associatedPropertyOrEvent = _underlyingMethod.
AssociatedSymbol
;
Symbols\Source\SourceMemberContainerSymbol.cs (3)
1603
WhereAsArray(s => !s.IsIndexer() && (!s.IsAccessor() || ((MethodSymbol)s).
AssociatedSymbol
?.IsIndexer() != true)));
2186
(d.Location == arg.method1.GetFirstLocation() || d.Location == arg.underlying1.
AssociatedSymbol
?.TryGetFirstLocation() ||
2187
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;
782
associatedPropertyOrEvent = ((MethodSymbol)overridingMember).
AssociatedSymbol
;
1693
var associatedPropertyOrEvent = ((MethodSymbol)hidingMember).
AssociatedSymbol
;
Symbols\SubstitutedMethodSymbol.cs (1)
225
Symbol underlying = OriginalDefinition.
AssociatedSymbol
;
Symbols\Symbol.cs (2)
683
if (!((PropertySymbol)method.
AssociatedSymbol
).CanCallMethodsDirectly())
738
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),
676
var listMember = (PropertySymbol)((MethodSymbol)containingType.GetFieldTypeMember(WellKnownMember.System_Collections_Generic_List_T__get_Item)).
AssociatedSymbol
;
Symbols\TypeSymbol.cs (4)
1523
? ((MethodSymbol)implementation).
AssociatedSymbol
1536
associated = bodyOfSynthesizedMethodImpl.
AssociatedSymbol
;
1562
Symbol associatedInterfacePropertyOrEvent = interfaceMethod.
AssociatedSymbol
;
1914
checkRefStructInterfacesFeatureAvailabilityOnUnscopedRefAttribute(implementingMethod.HasUnscopedRefAttribute ? implementingMethod : implementingMethod.
AssociatedSymbol
, diagnostics);
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (12)
CodeGen\CodeGenTupleTest.cs (9)
12856
Assert.Null(m1ToString.
AssociatedSymbol
);
15838
Assert.True(m1P1.Equals(m1P1Get.
AssociatedSymbol
, TypeCompareKind.ConsiderEverything));
15841
Assert.True(m1P1.Equals(m1P1Set.
AssociatedSymbol
, TypeCompareKind.ConsiderEverything));
16067
Assert.True(m1E1.Equals(m1E1Add.
AssociatedSymbol
, TypeCompareKind.ConsiderEverything));
16070
Assert.True(m1E1.Equals(m1E1Remove.
AssociatedSymbol
, TypeCompareKind.ConsiderEverything));
16101
Assert.NotSame(m1E2, m1E2Add.
AssociatedSymbol
);
16102
Assert.True(m1E2.Equals(m1E2Add.
AssociatedSymbol
, TypeCompareKind.ConsiderEverything));
16105
Assert.NotSame(m1E2, m1E2Remove.
AssociatedSymbol
);
16106
Assert.True(m1E2.Equals(m1E2Remove.
AssociatedSymbol
, TypeCompareKind.ConsiderEverything));
Emit\EmitMetadataTests.cs (3)
1184
Assert.Equal(property, accessor.
AssociatedSymbol
);
1282
Assert.Equal(p.GetMethod.
AssociatedSymbol
, p);
1320
Assert.Equal(accessor.
AssociatedSymbol
, property);
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (5)
PartialEventsAndConstructorsTests.cs (4)
1940
Assert.Same(e, addMethod.
AssociatedSymbol
);
1941
Assert.Same(e.PartialImplementationPart, addMethod.PartialImplementationPart.
AssociatedSymbol
);
1945
Assert.Same(e, removeMethod.
AssociatedSymbol
);
1946
Assert.Same(e.PartialImplementationPart, removeMethod.PartialImplementationPart.
AssociatedSymbol
);
Semantics\ParamsCollectionTests.cs (1)
12825
if (member.
AssociatedSymbol
is PropertySymbol prop)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (1)
Semantics\NativeIntegerTests.cs (1)
450
return includeUnderlyingMember(method.
AssociatedSymbol
);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (13)
Symbols\AccessorOverriddenOrHiddenMembersTests.cs (1)
886
Assert.NotNull(m.
AssociatedSymbol
);
Symbols\IndexerTests.cs (2)
1576
Assert.Equal("X", get_XB.
AssociatedSymbol
.MetadataName);
1577
Assert.Equal("X", get_XC.
AssociatedSymbol
.MetadataName);
Symbols\Metadata\PE\LoadingEvents.cs (1)
94
Assert.Same(@event, accessor.
AssociatedSymbol
);
Symbols\Metadata\PE\LoadingIndexers.cs (2)
1066
Assert.Same(property, accessor.
AssociatedSymbol
);
1071
Assert.Null(accessor.
AssociatedSymbol
);
Symbols\Retargeting\RetargetCustomModifiers.cs (1)
200
Assert.Null(m1.
AssociatedSymbol
);
Symbols\Source\PropertyTests.cs (2)
607
Assert.Equal(accessor.
AssociatedSymbol
, property);
765
Assert.Equal(accessor.
AssociatedSymbol
, associatedProperty);
Symbols\Source\RecordTests.cs (4)
171
Assert.Equal(x, getAccessor.
AssociatedSymbol
);
178
Assert.Equal(x, setAccessor!.
AssociatedSymbol
);
205
Assert.Equal(y, getAccessor.
AssociatedSymbol
);
211
Assert.Equal(y, setAccessor!.
AssociatedSymbol
);
Microsoft.CodeAnalysis.CSharp.Test.Utilities (3)
Extensions.cs (1)
566
Assert.Same(propertyOrEvent, accessor.
AssociatedSymbol
);
FunctionPointerUtilities.cs (1)
91
Assert.Null(symbol.
AssociatedSymbol
);
TestAttributesVisitor.cs (1)
97
return ((MethodSymbol)symbol).
AssociatedSymbol
;