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