226 references to AttributeLocation
Microsoft.CodeAnalysis.CSharp (226)
Declarations\DeclarationTreeBuilder.cs (1)
708if (attributeListSyntax.Target?.Identifier.ToAttributeLocation() == AttributeLocation.Method)
Parser\LanguageParser.cs (2)
1030case AttributeLocation.Assembly: 1031case AttributeLocation.Module:
Symbols\Attributes\AttributeData.cs (5)
215internal void DecodeSecurityAttribute<T>(Symbol targetSymbol, CSharpCompilation compilation, ref DecodeWellKnownAttributeArguments<AttributeSyntax, CSharpAttributeData, AttributeLocation> arguments) 241internal static void DecodeSkipLocalsInitAttribute<T>(CSharpCompilation compilation, ref DecodeWellKnownAttributeArguments<AttributeSyntax, CSharpAttributeData, AttributeLocation> arguments) 252internal static void DecodeMemberNotNullAttribute<T>(TypeSymbol type, ref DecodeWellKnownAttributeArguments<AttributeSyntax, CSharpAttributeData, AttributeLocation> arguments) 288private static void ReportBadNotNullMemberIfNeeded(TypeSymbol type, DecodeWellKnownAttributeArguments<AttributeSyntax, CSharpAttributeData, AttributeLocation> arguments, string memberName) 302internal static void DecodeMemberNotNullWhenAttribute<T>(TypeSymbol type, ref DecodeWellKnownAttributeArguments<AttributeSyntax, CSharpAttributeData, AttributeLocation> arguments)
Symbols\Source\AttributeLocation.cs (30)
40internal static string ToDisplayString(this AttributeLocation locations) 43for (int i = 1; i < (int)AttributeLocation.Unknown; i <<= 1) 45if ((locations & (AttributeLocation)i) != 0) 52switch ((AttributeLocation)i) 54case AttributeLocation.Assembly: 58case AttributeLocation.Module: 62case AttributeLocation.Type: 66case AttributeLocation.Method: 70case AttributeLocation.Field: 74case AttributeLocation.Property: 78case AttributeLocation.Event: 82case AttributeLocation.Return: 86case AttributeLocation.Parameter: 90case AttributeLocation.TypeParameter: 103internal static AttributeLocation ToAttributeLocation(this SyntaxToken token) 108var result = ToAttributeLocation(token.ValueText); 117Debug.Assert(result == AttributeLocation.None ^ SyntaxFacts.IsAttributeTargetSpecifier(kind)); 123internal static AttributeLocation ToAttributeLocation(this Syntax.InternalSyntax.SyntaxToken token) 131private static AttributeLocation ToAttributeLocation(string text) 136return AttributeLocation.Assembly; 138return AttributeLocation.Module; 140return AttributeLocation.Type; 142return AttributeLocation.Return; 144return AttributeLocation.Method; 146return AttributeLocation.Field; 148return AttributeLocation.Event; 150return AttributeLocation.Parameter; 152return AttributeLocation.Property; 154return AttributeLocation.TypeParameter; 156return AttributeLocation.None;
Symbols\Source\FieldSymbolWithAttributesAndModifiers.cs (11)
36AttributeLocation IAttributeTargetSymbol.DefaultAttributeLocation 37=> AttributeLocation.Field; 39AttributeLocation IAttributeTargetSymbol.AllowedAttributeLocations 40=> AttributeLocation.Field; 117internal sealed override (CSharpAttributeData?, BoundAttribute?) EarlyDecodeWellKnownAttribute(ref EarlyDecodeWellKnownAttributeArguments<EarlyWellKnownAttributeBinder, NamedTypeSymbol, AttributeSyntax, AttributeLocation> arguments) 162protected override void DecodeWellKnownAttributeImpl(ref DecodeWellKnownAttributeArguments<AttributeSyntax, CSharpAttributeData, AttributeLocation> arguments) 169Debug.Assert(arguments.SymbolPart == AttributeLocation.None); 203MarshalAsAttributeDecoder<FieldWellKnownAttributeData, AttributeSyntax, CSharpAttributeData, AttributeLocation>.Decode(ref arguments, AttributeTargets.Field, MessageProvider.Instance); 264private void VerifyConstantValueMatches(ConstantValue attrValue, ref DecodeWellKnownAttributeArguments<AttributeSyntax, CSharpAttributeData, AttributeLocation> arguments) 312internal override void PostDecodeWellKnownAttributes(ImmutableArray<CSharpAttributeData> boundAttributes, ImmutableArray<AttributeSyntax> allAttributeSyntaxNodes, BindingDiagnosticBag diagnostics, AttributeLocation symbolPart, WellKnownAttributeData decodedData) 319Debug.Assert(symbolPart == AttributeLocation.None);
Symbols\Source\IAttributeTargetSymbol.cs (2)
26AttributeLocation AllowedAttributeLocations { get; } 34AttributeLocation DefaultAttributeLocation { get; }
Symbols\Source\SourceAssemblySymbol.cs (12)
1327var arguments = new DecodeWellKnownAttributeArguments<AttributeSyntax, CSharpAttributeData, AttributeLocation>(); 1330arguments.SymbolPart = AttributeLocation.None; 2201private void DecodeTypeForwardedToAttribute(ref DecodeWellKnownAttributeArguments<AttributeSyntax, CSharpAttributeData, AttributeLocation> arguments) 2344AttributeLocation IAttributeTargetSymbol.DefaultAttributeLocation 2346get { return AttributeLocation.Assembly; } 2349AttributeLocation IAttributeTargetSymbol.AllowedAttributeLocations 2353return IsInteractive ? AttributeLocation.None : AttributeLocation.Assembly | AttributeLocation.Module; 2357protected override void DecodeWellKnownAttributeImpl(ref DecodeWellKnownAttributeArguments<AttributeSyntax, CSharpAttributeData, AttributeLocation> arguments) 2362private void DecodeWellKnownAttribute(ref DecodeWellKnownAttributeArguments<AttributeSyntax, CSharpAttributeData, AttributeLocation> arguments, int index, bool isFromNetModule) 2366Debug.Assert(arguments.SymbolPart == AttributeLocation.None);
Symbols\Source\SourceComplexParameterSymbol.cs (18)
442AttributeLocation IAttributeTargetSymbol.DefaultAttributeLocation => AttributeLocation.Parameter; 444AttributeLocation IAttributeTargetSymbol.AllowedAttributeLocations 450return AttributeLocation.Parameter | AttributeLocation.Property | AttributeLocation.Field; 453return AttributeLocation.Parameter; 644internal override (CSharpAttributeData?, BoundAttribute?) EarlyDecodeWellKnownAttribute(ref EarlyDecodeWellKnownAttributeArguments<EarlyWellKnownAttributeBinder, NamedTypeSymbol, AttributeSyntax, AttributeLocation> arguments) 708private (CSharpAttributeData?, BoundAttribute?) EarlyDecodeAttributeForDefaultParameterValue(AttributeDescription description, ref EarlyDecodeWellKnownAttributeArguments<EarlyWellKnownAttributeBinder, NamedTypeSymbol, AttributeSyntax, AttributeLocation> arguments) 737protected override void DecodeWellKnownAttributeImpl(ref DecodeWellKnownAttributeArguments<AttributeSyntax, CSharpAttributeData, AttributeLocation> arguments) 743Debug.Assert(arguments.SymbolPart == AttributeLocation.None); 787MarshalAsAttributeDecoder<ParameterWellKnownAttributeData, AttributeSyntax, CSharpAttributeData, AttributeLocation>.Decode(ref arguments, AttributeTargets.Parameter, MessageProvider.Instance); 892private void DecodeDefaultParameterValueAttribute(AttributeDescription description, ref DecodeWellKnownAttributeArguments<AttributeSyntax, CSharpAttributeData, AttributeLocation> arguments) 1241private void DecodeInterpolatedStringHandlerArgumentAttribute(ref DecodeWellKnownAttributeArguments<AttributeSyntax, CSharpAttributeData, AttributeLocation> arguments, BindingDiagnosticBag diagnostics, int attributeIndex) 1324(int Ordinal, ParameterSymbol? Parameter)? decodeName(TypedConstant constant, ref DecodeWellKnownAttributeArguments<AttributeSyntax, CSharpAttributeData, AttributeLocation> arguments) 1381static void setInterpolatedStringHandlerAttributeError(ref DecodeWellKnownAttributeArguments<AttributeSyntax, CSharpAttributeData, AttributeLocation> arguments) 1388internal override void PostDecodeWellKnownAttributes(ImmutableArray<CSharpAttributeData> boundAttributes, ImmutableArray<AttributeSyntax> allAttributeSyntaxNodes, BindingDiagnosticBag diagnostics, AttributeLocation symbolPart, WellKnownAttributeData decodedData) 1395Debug.Assert(symbolPart == AttributeLocation.None);
Symbols\Source\SourceConstructorSymbolBase.cs (2)
232internal override (CSharpAttributeData?, BoundAttribute?) EarlyDecodeWellKnownAttribute(ref EarlyDecodeWellKnownAttributeArguments<EarlyWellKnownAttributeBinder, NamedTypeSymbol, AttributeSyntax, AttributeLocation> arguments) 234if (arguments.SymbolPart == AttributeLocation.None)
Symbols\Source\SourceCustomEventSymbol.cs (2)
193protected override AttributeLocation AllowedAttributeLocations 195get { return AttributeLocation.Event; }
Symbols\Source\SourceEventSymbol.cs (7)
167AttributeLocation IAttributeTargetSymbol.DefaultAttributeLocation 169get { return AttributeLocation.Event; } 172AttributeLocation IAttributeTargetSymbol.AllowedAttributeLocations 180protected abstract AttributeLocation AllowedAttributeLocations 253internal override (CSharpAttributeData?, BoundAttribute?) EarlyDecodeWellKnownAttribute(ref EarlyDecodeWellKnownAttributeArguments<EarlyWellKnownAttributeBinder, NamedTypeSymbol, AttributeSyntax, AttributeLocation> arguments) 296protected sealed override void DecodeWellKnownAttributeImpl(ref DecodeWellKnownAttributeArguments<AttributeSyntax, CSharpAttributeData, AttributeLocation> arguments) 300Debug.Assert(arguments.SymbolPart == AttributeLocation.None);
Symbols\Source\SourceFieldLikeEventSymbol.cs (6)
162protected override AttributeLocation AllowedAttributeLocations 167AttributeLocation.Event | AttributeLocation.Method | AttributeLocation.Field : 168AttributeLocation.Event | AttributeLocation.Method;
Symbols\Source\SourceFieldSymbol.cs (2)
114protected sealed override void DecodeWellKnownAttributeImpl(ref DecodeWellKnownAttributeArguments<AttributeSyntax, CSharpAttributeData, AttributeLocation> arguments) 121Debug.Assert(arguments.SymbolPart == AttributeLocation.None);
Symbols\Source\SourceMemberFieldSymbol.cs (1)
131internal override void PostDecodeWellKnownAttributes(ImmutableArray<CSharpAttributeData> boundAttributes, ImmutableArray<AttributeSyntax> allAttributeSyntaxNodes, BindingDiagnosticBag diagnostics, AttributeLocation symbolPart, WellKnownAttributeData decodedData)
Symbols\Source\SourceMethodSymbolWithAttributes.cs (35)
135protected virtual AttributeLocation AttributeLocationForLoadAndValidateAttributes 137get { return AttributeLocation.None; } 145AttributeLocation IAttributeTargetSymbol.DefaultAttributeLocation 147get { return AttributeLocation.Method; } 150AttributeLocation IAttributeTargetSymbol.AllowedAttributeLocations 159return AttributeLocation.Method; 164return AttributeLocation.Method | AttributeLocation.Return | AttributeLocation.Parameter; 167return AttributeLocation.Method | AttributeLocation.Return; 291? (GetReturnTypeAttributeDeclarations(), AttributeLocation.Return) 332internal override (CSharpAttributeData?, BoundAttribute?) EarlyDecodeWellKnownAttribute(ref EarlyDecodeWellKnownAttributeArguments<EarlyWellKnownAttributeBinder, NamedTypeSymbol, AttributeSyntax, AttributeLocation> arguments) 334Debug.Assert(arguments.SymbolPart == AttributeLocation.None || arguments.SymbolPart == AttributeLocation.Return); 338if (arguments.SymbolPart == AttributeLocation.None) 510protected override void DecodeWellKnownAttributeImpl(ref DecodeWellKnownAttributeArguments<AttributeSyntax, CSharpAttributeData, AttributeLocation> arguments) 513Debug.Assert(arguments.SymbolPart == AttributeLocation.None || arguments.SymbolPart == AttributeLocation.Return); 515if (arguments.SymbolPart == AttributeLocation.None) 525private void DecodeWellKnownAttributeAppliedToMethod(ref DecodeWellKnownAttributeArguments<AttributeSyntax, CSharpAttributeData, AttributeLocation> arguments) 539AttributeData.DecodeMethodImplAttribute<MethodWellKnownAttributeData, AttributeSyntax, CSharpAttributeData, AttributeLocation>(ref arguments, MessageProvider.Instance); 682ref DecodeWellKnownAttributeArguments<AttributeSyntax, CSharpAttributeData, AttributeLocation> arguments, 773private void DecodeWellKnownAttributeAppliedToReturnValue(ref DecodeWellKnownAttributeArguments<AttributeSyntax, CSharpAttributeData, AttributeLocation> arguments) 784MarshalAsAttributeDecoder<ReturnTypeWellKnownAttributeData, AttributeSyntax, CSharpAttributeData, AttributeLocation>.Decode(ref arguments, AttributeTargets.ReturnValue, MessageProvider.Instance); 812private void DecodeDllImportAttribute(ref DecodeWellKnownAttributeArguments<AttributeSyntax, CSharpAttributeData, AttributeLocation> arguments) 937private void DecodeModuleInitializerAttribute(DecodeWellKnownAttributeArguments<AttributeSyntax, CSharpAttributeData, AttributeLocation> arguments) 986private void DecodeInterceptsLocationAttribute(DecodeWellKnownAttributeArguments<AttributeSyntax, CSharpAttributeData, AttributeLocation> arguments) 1004private void DecodeInterceptsLocationChecksumBased(DecodeWellKnownAttributeArguments<AttributeSyntax, CSharpAttributeData, AttributeLocation> arguments, int version, string? data) 1160DecodeWellKnownAttributeArguments<AttributeSyntax, CSharpAttributeData, AttributeLocation> arguments, 1371private void DecodeUnmanagedCallersOnlyAttribute(ref DecodeWellKnownAttributeArguments<AttributeSyntax, CSharpAttributeData, AttributeLocation> arguments) 1457internal override void PostDecodeWellKnownAttributes(ImmutableArray<CSharpAttributeData> boundAttributes, ImmutableArray<AttributeSyntax> allAttributeSyntaxNodes, BindingDiagnosticBag diagnostics, AttributeLocation symbolPart, WellKnownAttributeData decodedData) 1462Debug.Assert(symbolPart == AttributeLocation.None || symbolPart == AttributeLocation.Return); 1464if (symbolPart != AttributeLocation.Return)
Symbols\Source\SourceModuleSymbol.cs (8)
487AttributeLocation IAttributeTargetSymbol.DefaultAttributeLocation 489get { return AttributeLocation.Module; } 492AttributeLocation IAttributeTargetSymbol.AllowedAttributeLocations 496return ContainingAssembly.IsInteractive ? AttributeLocation.None : AttributeLocation.Assembly | AttributeLocation.Module; 551protected override void DecodeWellKnownAttributeImpl(ref DecodeWellKnownAttributeArguments<AttributeSyntax, CSharpAttributeData, AttributeLocation> arguments) 557Debug.Assert(arguments.SymbolPart == AttributeLocation.None);
Symbols\Source\SourceNamedTypeSymbol.cs (16)
801AttributeLocation IAttributeTargetSymbol.DefaultAttributeLocation 803get { return AttributeLocation.Type; } 806AttributeLocation IAttributeTargetSymbol.AllowedAttributeLocations 813return AttributeLocation.Type | AttributeLocation.Return; 817return AttributeLocation.Type; 821return AttributeLocation.Type | (HasPrimaryConstructor ? AttributeLocation.Method : 0); 824return AttributeLocation.None; 897internal override (CSharpAttributeData?, BoundAttribute?) EarlyDecodeWellKnownAttribute(ref EarlyDecodeWellKnownAttributeArguments<EarlyWellKnownAttributeBinder, NamedTypeSymbol, AttributeSyntax, AttributeLocation> arguments) 1090protected sealed override void DecodeWellKnownAttributeImpl(ref DecodeWellKnownAttributeArguments<AttributeSyntax, CSharpAttributeData, AttributeLocation> arguments) 1097Debug.Assert(arguments.SymbolPart == AttributeLocation.None); 1133AttributeData.DecodeStructLayoutAttribute<TypeWellKnownAttributeData, AttributeSyntax, CSharpAttributeData, AttributeLocation>( 1328private void DecodeCoClassAttribute(ref DecodeWellKnownAttributeArguments<AttributeSyntax, CSharpAttributeData, AttributeLocation> arguments) 1563internal override void PostDecodeWellKnownAttributes(ImmutableArray<CSharpAttributeData> boundAttributes, ImmutableArray<AttributeSyntax> allAttributeSyntaxNodes, BindingDiagnosticBag diagnostics, AttributeLocation symbolPart, WellKnownAttributeData decodedData) 1570Debug.Assert(symbolPart == AttributeLocation.None);
Symbols\Source\SourcePropertySymbolBase.cs (11)
1266AttributeLocation IAttributeTargetSymbol.DefaultAttributeLocation => AttributeLocation.Property; 1268AttributeLocation IAttributeTargetSymbol.AllowedAttributeLocations 1270? AttributeLocation.Property | AttributeLocation.Field 1271: AttributeLocation.Property; 1418internal override (CSharpAttributeData?, BoundAttribute?) EarlyDecodeWellKnownAttribute(ref EarlyDecodeWellKnownAttributeArguments<EarlyWellKnownAttributeBinder, NamedTypeSymbol, AttributeSyntax, AttributeLocation> arguments) 1498protected override void DecodeWellKnownAttributeImpl(ref DecodeWellKnownAttributeArguments<AttributeSyntax, CSharpAttributeData, AttributeLocation> arguments) 1507Debug.Assert(arguments.SymbolPart == AttributeLocation.None); 1676internal override void PostDecodeWellKnownAttributes(ImmutableArray<CSharpAttributeData> boundAttributes, ImmutableArray<AttributeSyntax> allAttributeSyntaxNodes, BindingDiagnosticBag diagnostics, AttributeLocation symbolPart, WellKnownAttributeData decodedData) 1683Debug.Assert(symbolPart == AttributeLocation.None);
Symbols\Source\SourceTypeParameterSymbol.cs (6)
148AttributeLocation IAttributeTargetSymbol.DefaultAttributeLocation 150get { return AttributeLocation.TypeParameter; } 153AttributeLocation IAttributeTargetSymbol.AllowedAttributeLocations 155get { return AttributeLocation.TypeParameter; } 426protected sealed override void DecodeWellKnownAttributeImpl(ref DecodeWellKnownAttributeArguments<AttributeSyntax, CSharpAttributeData, AttributeLocation> arguments) 433Debug.Assert(arguments.SymbolPart == AttributeLocation.None);
Symbols\Symbol.cs (2)
1524internal bool ReportExplicitUseOfReservedAttributes(in DecodeWellKnownAttributeArguments<AttributeSyntax, CSharpAttributeData, AttributeLocation> arguments, ReservedAttributes reserved) 1604bool reportExplicitUseOfReservedAttribute(CSharpAttributeData attribute, in DecodeWellKnownAttributeArguments<AttributeSyntax, CSharpAttributeData, AttributeLocation> arguments, in AttributeDescription attributeDescription)
Symbols\Symbol_Attributes.cs (26)
142internal virtual (CSharpAttributeData?, BoundAttribute?) EarlyDecodeWellKnownAttribute(ref EarlyDecodeWellKnownAttributeArguments<EarlyWellKnownAttributeBinder, NamedTypeSymbol, AttributeSyntax, AttributeLocation> arguments) 148ref EarlyDecodeWellKnownAttributeArguments<EarlyWellKnownAttributeBinder, NamedTypeSymbol, AttributeSyntax, AttributeLocation> arguments, 216protected void DecodeWellKnownAttribute(ref DecodeWellKnownAttributeArguments<AttributeSyntax, CSharpAttributeData, AttributeLocation> arguments) 238protected virtual void DecodeWellKnownAttributeImpl(ref DecodeWellKnownAttributeArguments<AttributeSyntax, CSharpAttributeData, AttributeLocation> arguments) 258/// <param name="symbolPart">Specific part of the symbol to which the attributes apply, or <see cref="AttributeLocation.None"/> if the attributes apply to the symbol itself.</param> 260internal virtual void PostDecodeWellKnownAttributes(ImmutableArray<CSharpAttributeData> boundAttributes, ImmutableArray<AttributeSyntax> allAttributeSyntaxNodes, BindingDiagnosticBag diagnostics, AttributeLocation symbolPart, WellKnownAttributeData decodedData) 292/// <param name="symbolPart">Specific part of the symbol to which the attributes apply, or <see cref="AttributeLocation.None"/> if the attributes apply to the symbol itself.</param> 302AttributeLocation symbolPart = AttributeLocation.None, 586AttributeLocation symbolPart, 678private static bool MatchAttributeTarget(IAttributeTargetSymbol attributeTarget, AttributeLocation symbolPart, AttributeTargetSpecifierSyntax targetOpt, BindingDiagnosticBag diagnostics) 684bool isOwner = symbolPart == AttributeLocation.None && ReferenceEquals(attributesOwner, attributeTarget); 694targetOpt.Identifier.ToAttributeLocation() == AttributeLocation.Module) 701AttributeLocation allowedTargets = attributesOwner.AllowedAttributeLocations; 703AttributeLocation explicitTarget = targetOpt.GetAttributeLocation(); 704if (explicitTarget == AttributeLocation.None) 722if (allowedTargets == AttributeLocation.None) 726case AttributeLocation.Assembly: 727case AttributeLocation.Module: 747if (symbolPart == AttributeLocation.None) 769AttributeLocation symbolPart, 780var arguments = new EarlyDecodeWellKnownAttributeArguments<EarlyWellKnownAttributeBinder, NamedTypeSymbol, AttributeSyntax, AttributeLocation>(); 842AttributeLocation symbolPart) 852var arguments = new DecodeWellKnownAttributeArguments<AttributeSyntax, CSharpAttributeData, AttributeLocation>(); 890AttributeLocation symbolPart, 908if (symbolPart == AttributeLocation.Return)
Symbols\Synthesized\Records\SynthesizedPrimaryConstructor.cs (16)
68protected override AttributeLocation AttributeLocationForLoadAndValidateAttributes 70get { return AttributeLocation.Method; } 140internal override (CSharpAttributeData?, BoundAttribute?) EarlyDecodeWellKnownAttribute(ref EarlyDecodeWellKnownAttributeArguments<EarlyWellKnownAttributeBinder, NamedTypeSymbol, AttributeSyntax, AttributeLocation> arguments) 142Debug.Assert(arguments.SymbolPart == AttributeLocation.Method); 143arguments.SymbolPart = AttributeLocation.None; 145arguments.SymbolPart = AttributeLocation.Method; 149protected override void DecodeWellKnownAttributeImpl(ref DecodeWellKnownAttributeArguments<AttributeSyntax, CSharpAttributeData, AttributeLocation> arguments) 151Debug.Assert(arguments.SymbolPart == AttributeLocation.Method); 152arguments.SymbolPart = AttributeLocation.None; 154arguments.SymbolPart = AttributeLocation.Method; 157internal override void PostDecodeWellKnownAttributes(ImmutableArray<CSharpAttributeData> boundAttributes, ImmutableArray<AttributeSyntax> allAttributeSyntaxNodes, BindingDiagnosticBag diagnostics, AttributeLocation symbolPart, WellKnownAttributeData decodedData) 159Debug.Assert(symbolPart is AttributeLocation.Method or AttributeLocation.Return); 160base.PostDecodeWellKnownAttributes(boundAttributes, allAttributeSyntaxNodes, diagnostics, symbolPart is AttributeLocation.Method ? AttributeLocation.None : symbolPart, decodedData); 185target.GetLocation(), target.ToString(), (AttributeOwner.AllowedAttributeLocations & ~AttributeLocation.Method).ToDisplayString());
Symbols\Synthesized\SynthesizedBackingFieldSymbol.cs (4)
128protected sealed override void DecodeWellKnownAttributeImpl(ref DecodeWellKnownAttributeArguments<AttributeSyntax, CSharpAttributeData, AttributeLocation> arguments) 135Debug.Assert(arguments.SymbolPart == AttributeLocation.None); 154internal override void PostDecodeWellKnownAttributes(ImmutableArray<CSharpAttributeData> boundAttributes, ImmutableArray<AttributeSyntax> allAttributeSyntaxNodes, BindingDiagnosticBag diagnostics, AttributeLocation symbolPart, WellKnownAttributeData decodedData) 176if (attribute.Target?.GetAttributeLocation() == AttributeLocation.Field)
Syntax\AttributeTargetSpecifierSyntax.cs (1)
13internal AttributeLocation GetAttributeLocation()