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