2 writes to Attribute
Microsoft.CodeAnalysis.CSharp (2)
Symbols\Source\SourceAssemblySymbol.cs (1)
1346
arguments.
Attribute
= attribute;
Symbols\Symbol_Attributes.cs (1)
866
arguments.
Attribute
= boundAttribute;
61 references to Attribute
Microsoft.CodeAnalysis (25)
Symbols\Attributes\CommonAttributeData.cs (2)
409
var attribute = arguments.
Attribute
;
469
var attribute = arguments.
Attribute
;
Symbols\Attributes\MarshalAsAttributeDecoder.cs (23)
24
UnmanagedType unmanagedType = DecodeMarshalAsType(arguments.
Attribute
);
45
messageProvider.ReportMarshalUnmanagedTypeOnlyValidForFields(arguments.Diagnostics, arguments.AttributeSyntaxOpt, 0, "ByValArray", arguments.
Attribute
);
61
messageProvider.ReportMarshalUnmanagedTypeOnlyValidForFields(arguments.Diagnostics, arguments.AttributeSyntaxOpt, 0, "ByValTStr", arguments.
Attribute
);
73
messageProvider.ReportMarshalUnmanagedTypeNotValidForFields(arguments.Diagnostics, arguments.AttributeSyntaxOpt, 0, "VBByRefStr", arguments.
Attribute
);
87
messageProvider.ReportInvalidAttributeArgument(arguments.Diagnostics, arguments.AttributeSyntaxOpt, 0, arguments.
Attribute
);
125
int position = arguments.
Attribute
.CommonConstructorArguments.Length;
126
foreach (var namedArg in arguments.
Attribute
.NamedArguments)
134
messageProvider.ReportInvalidNamedArgument(arguments.Diagnostics, arguments.AttributeSyntaxOpt, position, arguments.
Attribute
.AttributeClass, namedArg.Key);
150
messageProvider.ReportInvalidNamedArgument(arguments.Diagnostics, arguments.AttributeSyntaxOpt, position, arguments.
Attribute
.AttributeClass, namedArg.Key);
179
int position = arguments.
Attribute
.CommonConstructorArguments.Length;
182
foreach (var namedArg in arguments.
Attribute
.NamedArguments)
190
messageProvider.ReportInvalidNamedArgument(arguments.Diagnostics, arguments.AttributeSyntaxOpt, position, arguments.
Attribute
.AttributeClass, namedArg.Key);
216
int position = arguments.
Attribute
.CommonConstructorArguments.Length;
217
foreach (var namedArg in arguments.
Attribute
.NamedArguments)
230
messageProvider.ReportInvalidNamedArgument(arguments.Diagnostics, arguments.AttributeSyntaxOpt, position, arguments.
Attribute
.AttributeClass, namedArg.Key);
240
messageProvider.ReportInvalidNamedArgument(arguments.Diagnostics, arguments.AttributeSyntaxOpt, position, arguments.
Attribute
.AttributeClass, namedArg.Key);
255
messageProvider.ReportInvalidNamedArgument(arguments.Diagnostics, arguments.AttributeSyntaxOpt, position, arguments.
Attribute
.AttributeClass, namedArg.Key);
305
int position = arguments.
Attribute
.CommonConstructorArguments.Length;
306
foreach (var namedArg in arguments.
Attribute
.NamedArguments)
314
messageProvider.ReportInvalidNamedArgument(arguments.Diagnostics, arguments.AttributeSyntaxOpt, position, arguments.
Attribute
.AttributeClass, namedArg.Key);
371
int position = arguments.
Attribute
.CommonConstructorArguments.Length;
374
foreach (var namedArg in arguments.
Attribute
.NamedArguments)
382
messageProvider.ReportInvalidNamedArgument(arguments.Diagnostics, arguments.AttributeSyntaxOpt, position, arguments.
Attribute
.AttributeClass, namedArg.Key);
Microsoft.CodeAnalysis.CSharp (36)
Symbols\Attributes\AttributeData.cs (3)
253
var value = arguments.
Attribute
.CommonConstructorArguments[0];
303
var value = arguments.
Attribute
.CommonConstructorArguments[1];
309
var sense = arguments.
Attribute
.CommonConstructorArguments[0].DecodeValue<bool>(SpecialType.System_Boolean);
Symbols\Source\FieldSymbolWithAttributesAndModifiers.cs (1)
168
var attribute = arguments.
Attribute
;
Symbols\Source\SourceAssemblySymbol.cs (3)
2205
Debug.Assert(!arguments.
Attribute
.HasErrors);
2208
TypeSymbol forwardedType = (TypeSymbol)arguments.
Attribute
.CommonConstructorArguments[0].ValueInternal;
2365
var attribute = arguments.
Attribute
;
Symbols\Source\SourceComplexParameterSymbol.cs (5)
733
var attribute = arguments.
Attribute
;
891
var attribute = arguments.
Attribute
;
1241
Debug.Assert(arguments.
Attribute
.IsTargetAttribute(AttributeDescription.InterpolatedStringHandlerArgumentAttribute) && arguments.
Attribute
.CommonConstructorArguments.Length == 1);
1266
TypedConstant constructorArgument = arguments.
Attribute
.CommonConstructorArguments[0];
Symbols\Source\SourceEventSymbol.cs (1)
344
var attribute = arguments.
Attribute
;
Symbols\Source\SourceFieldSymbol.cs (1)
119
var attribute = arguments.
Attribute
;
Symbols\Source\SourceMethodSymbolWithAttributes.cs (11)
511
Debug.Assert(!arguments.
Attribute
.HasErrors);
528
var attribute = arguments.
Attribute
;
689
if (arguments.
Attribute
.IsTargetAttribute(description))
698
AttributeUsageInfo attributeUsage = arguments.
Attribute
.AttributeClass.GetAttributeUsageInfo();
781
var attribute = arguments.
Attribute
;
820
var attribute = arguments.
Attribute
;
992
Debug.Assert(!arguments.
Attribute
.HasErrors);
993
var constructorArguments = arguments.
Attribute
.CommonConstructorArguments;
1003
Debug.Assert(arguments.
Attribute
.AttributeConstructor.Parameters is [{ Type.SpecialType: SpecialType.System_Int32 }, { Type.SpecialType: SpecialType.System_String }]);
1175
var attributeData = arguments.
Attribute
;
1379
DecodeUnmanagedCallersOnlyAttributeData(this, arguments.
Attribute
, arguments.AttributeSyntaxOpt.Location, diagnostics);
Symbols\Source\SourceModuleSymbol.cs (1)
564
var attribute = arguments.
Attribute
;
Symbols\Source\SourceNamedTypeSymbol.cs (2)
1100
var attribute = arguments.
Attribute
;
1339
var attribute = arguments.
Attribute
;
Symbols\Source\SourcePropertySymbolBase.cs (1)
1530
var attribute = arguments.
Attribute
;
Symbols\Source\SourceTypeParameterSymbol.cs (1)
432
var attribute = arguments.
Attribute
;
Symbols\Symbol.cs (1)
1538
var attribute = arguments.
Attribute
;
Symbols\Symbol_Attributes.cs (4)
220
if (arguments.
Attribute
.IsTargetAttribute(AttributeDescription.CompilerFeatureRequiredAttribute))
225
else if (arguments.
Attribute
.IsTargetAttribute(AttributeDescription.ExperimentalAttribute))
227
if (!SyntaxFacts.IsValidIdentifier((string?)arguments.
Attribute
.CommonConstructorArguments[0].ValueInternal))
229
var attrArgumentLocation = arguments.
Attribute
.GetAttributeArgumentLocation(parameterIndex: 0);
Symbols\Synthesized\SynthesizedBackingFieldSymbol.cs (1)
241
var attribute = arguments.
Attribute
;