10 implementations of IAttributeTargetSymbol
Microsoft.CodeAnalysis.CSharp (10)
Symbols\Source\FieldSymbolWithAttributesAndModifiers.cs (1)
19internal abstract class FieldSymbolWithAttributesAndModifiers : FieldSymbol, IAttributeTargetSymbol
Symbols\Source\SourceAssemblySymbol.cs (1)
29internal sealed partial class SourceAssemblySymbol : MetadataOrSourceAssemblySymbol, ISourceAssemblySymbolInternal, IAttributeTargetSymbol
Symbols\Source\SourceComplexParameterSymbol.cs (1)
21internal abstract class SourceComplexParameterSymbolBase : SourceParameterSymbol, IAttributeTargetSymbol
Symbols\Source\SourceEventSymbol.cs (1)
23internal abstract class SourceEventSymbol : EventSymbol, IAttributeTargetSymbol
Symbols\Source\SourceMemberMethodSymbol.cs (1)
20internal abstract class SourceMemberMethodSymbol : LocalFunctionOrSourceMemberMethodSymbol, IAttributeTargetSymbol
Symbols\Source\SourceMethodSymbolWithAttributes.cs (1)
28internal abstract partial class SourceMethodSymbol : IAttributeTargetSymbol
Symbols\Source\SourceModuleSymbol.cs (1)
26internal sealed class SourceModuleSymbol : NonMissingModuleSymbol, IAttributeTargetSymbol
Symbols\Source\SourceNamedTypeSymbol.cs (1)
26internal sealed partial class SourceNamedTypeSymbol : SourceMemberContainerTypeSymbol, IAttributeTargetSymbol
Symbols\Source\SourcePropertySymbolBase.cs (1)
21internal abstract class SourcePropertySymbolBase : PropertySymbol, IAttributeTargetSymbol
Symbols\Source\SourceTypeParameterSymbol.cs (1)
23internal abstract class SourceTypeParameterSymbol : TypeParameterSymbol, IAttributeTargetSymbol
62 references to IAttributeTargetSymbol
Microsoft.CodeAnalysis.CSharp (62)
Symbols\MethodSymbol.cs (1)
391Debug.Assert(!(this is IAttributeTargetSymbol)); //such types must override
Symbols\Source\FieldSymbolWithAttributesAndModifiers.cs (5)
31protected abstract IAttributeTargetSymbol AttributeOwner { get; } 33IAttributeTargetSymbol IAttributeTargetSymbol.AttributesOwner 36AttributeLocation IAttributeTargetSymbol.DefaultAttributeLocation 39AttributeLocation IAttributeTargetSymbol.AllowedAttributeLocations
Symbols\Source\IAttributeTargetSymbol.cs (1)
21IAttributeTargetSymbol AttributesOwner { get; }
Symbols\Source\SourceAssemblySymbol.cs (4)
2340IAttributeTargetSymbol IAttributeTargetSymbol.AttributesOwner 2345AttributeLocation IAttributeTargetSymbol.DefaultAttributeLocation 2350AttributeLocation IAttributeTargetSymbol.AllowedAttributeLocations
Symbols\Source\SourceComplexParameterSymbol.cs (5)
439protected virtual IAttributeTargetSymbol AttributeOwner => this; 441IAttributeTargetSymbol IAttributeTargetSymbol.AttributesOwner => AttributeOwner; 443AttributeLocation IAttributeTargetSymbol.DefaultAttributeLocation => AttributeLocation.Parameter; 445AttributeLocation IAttributeTargetSymbol.AllowedAttributeLocations
Symbols\Source\SourceDelegateMethodSymbol.cs (1)
179protected sealed override IAttributeTargetSymbol AttributeOwner
Symbols\Source\SourceEventFieldSymbol.cs (1)
43protected override IAttributeTargetSymbol AttributeOwner
Symbols\Source\SourceEventSymbol.cs (4)
175IAttributeTargetSymbol IAttributeTargetSymbol.AttributesOwner 180AttributeLocation IAttributeTargetSymbol.DefaultAttributeLocation 185AttributeLocation IAttributeTargetSymbol.AllowedAttributeLocations
Symbols\Source\SourceFieldLikeEventSymbol.cs (1)
267protected override IAttributeTargetSymbol AttributeOwner
Symbols\Source\SourceFieldSymbol.cs (1)
31protected override IAttributeTargetSymbol AttributeOwner
Symbols\Source\SourceMethodSymbolWithAttributes.cs (5)
131protected virtual IAttributeTargetSymbol AttributeOwner 141IAttributeTargetSymbol IAttributeTargetSymbol.AttributesOwner 146AttributeLocation IAttributeTargetSymbol.DefaultAttributeLocation 151AttributeLocation IAttributeTargetSymbol.AllowedAttributeLocations
Symbols\Source\SourceModuleSymbol.cs (4)
490IAttributeTargetSymbol IAttributeTargetSymbol.AttributesOwner 495AttributeLocation IAttributeTargetSymbol.DefaultAttributeLocation 500AttributeLocation IAttributeTargetSymbol.AllowedAttributeLocations
Symbols\Source\SourceNamedTypeSymbol.cs (4)
800IAttributeTargetSymbol IAttributeTargetSymbol.AttributesOwner 805AttributeLocation IAttributeTargetSymbol.DefaultAttributeLocation 810AttributeLocation IAttributeTargetSymbol.AllowedAttributeLocations
Symbols\Source\SourcePropertySymbol.cs (1)
226public override IAttributeTargetSymbol AttributesOwner => this;
Symbols\Source\SourcePropertySymbolBase.cs (5)
1281public abstract IAttributeTargetSymbol AttributesOwner { get; } 1283IAttributeTargetSymbol IAttributeTargetSymbol.AttributesOwner => AttributesOwner; 1285AttributeLocation IAttributeTargetSymbol.DefaultAttributeLocation => AttributeLocation.Property; 1287AttributeLocation IAttributeTargetSymbol.AllowedAttributeLocations
Symbols\Source\SourceTypeParameterSymbol.cs (4)
143IAttributeTargetSymbol IAttributeTargetSymbol.AttributesOwner 148AttributeLocation IAttributeTargetSymbol.DefaultAttributeLocation 153AttributeLocation IAttributeTargetSymbol.AllowedAttributeLocations
Symbols\Symbol_Attributes.cs (5)
29Debug.Assert(!(this is IAttributeTargetSymbol)); //such types must override 592var attributeTarget = (IAttributeTargetSymbol)this; 677private static bool MatchAttributeTarget(IAttributeTargetSymbol attributeTarget, AttributeLocation symbolPart, AttributeTargetSpecifierSyntax targetOpt, BindingDiagnosticBag diagnostics) 679IAttributeTargetSymbol attributesOwner = attributeTarget.AttributesOwner;
Symbols\Synthesized\Records\SynthesizedPrimaryConstructor.cs (3)
29Debug.Assert(containingType is IAttributeTargetSymbol); 64protected override IAttributeTargetSymbol AttributeOwner 66get { return (IAttributeTargetSymbol)ContainingType; }
Symbols\Synthesized\Records\SynthesizedPrimaryConstructorParameterBackingFieldSymbol.cs (1)
32protected override IAttributeTargetSymbol AttributeOwner
Symbols\Synthesized\Records\SynthesizedRecordEqualityContractProperty.cs (1)
59public override IAttributeTargetSymbol AttributesOwner => this;
Symbols\Synthesized\Records\SynthesizedRecordPropertySymbol.cs (2)
50public override IAttributeTargetSymbol AttributesOwner => BackingParameter as IAttributeTargetSymbol ?? this;
Symbols\Synthesized\SynthesizedAccessorValueParameterSymbol.cs (1)
68protected override IAttributeTargetSymbol AttributeOwner
Symbols\Synthesized\SynthesizedBackingFieldSymbol.cs (1)
100protected override IAttributeTargetSymbol AttributeOwner
Symbols\Synthesized\SynthesizedEventAccessorSymbol.cs (1)
66protected override IAttributeTargetSymbol AttributeOwner