25 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);