25 references to Attribute
Microsoft.CodeAnalysis (25)
Symbols\Attributes\CommonAttributeData.cs (2)
409var attribute = arguments.Attribute; 469var attribute = arguments.Attribute;
Symbols\Attributes\MarshalAsAttributeDecoder.cs (23)
24UnmanagedType unmanagedType = DecodeMarshalAsType(arguments.Attribute); 45messageProvider.ReportMarshalUnmanagedTypeOnlyValidForFields(arguments.Diagnostics, arguments.AttributeSyntaxOpt, 0, "ByValArray", arguments.Attribute); 61messageProvider.ReportMarshalUnmanagedTypeOnlyValidForFields(arguments.Diagnostics, arguments.AttributeSyntaxOpt, 0, "ByValTStr", arguments.Attribute); 73messageProvider.ReportMarshalUnmanagedTypeNotValidForFields(arguments.Diagnostics, arguments.AttributeSyntaxOpt, 0, "VBByRefStr", arguments.Attribute); 87messageProvider.ReportInvalidAttributeArgument(arguments.Diagnostics, arguments.AttributeSyntaxOpt, 0, arguments.Attribute); 125int position = arguments.Attribute.CommonConstructorArguments.Length; 126foreach (var namedArg in arguments.Attribute.NamedArguments) 134messageProvider.ReportInvalidNamedArgument(arguments.Diagnostics, arguments.AttributeSyntaxOpt, position, arguments.Attribute.AttributeClass, namedArg.Key); 150messageProvider.ReportInvalidNamedArgument(arguments.Diagnostics, arguments.AttributeSyntaxOpt, position, arguments.Attribute.AttributeClass, namedArg.Key); 179int position = arguments.Attribute.CommonConstructorArguments.Length; 182foreach (var namedArg in arguments.Attribute.NamedArguments) 190messageProvider.ReportInvalidNamedArgument(arguments.Diagnostics, arguments.AttributeSyntaxOpt, position, arguments.Attribute.AttributeClass, namedArg.Key); 216int position = arguments.Attribute.CommonConstructorArguments.Length; 217foreach (var namedArg in arguments.Attribute.NamedArguments) 230messageProvider.ReportInvalidNamedArgument(arguments.Diagnostics, arguments.AttributeSyntaxOpt, position, arguments.Attribute.AttributeClass, namedArg.Key); 240messageProvider.ReportInvalidNamedArgument(arguments.Diagnostics, arguments.AttributeSyntaxOpt, position, arguments.Attribute.AttributeClass, namedArg.Key); 255messageProvider.ReportInvalidNamedArgument(arguments.Diagnostics, arguments.AttributeSyntaxOpt, position, arguments.Attribute.AttributeClass, namedArg.Key); 305int position = arguments.Attribute.CommonConstructorArguments.Length; 306foreach (var namedArg in arguments.Attribute.NamedArguments) 314messageProvider.ReportInvalidNamedArgument(arguments.Diagnostics, arguments.AttributeSyntaxOpt, position, arguments.Attribute.AttributeClass, namedArg.Key); 371int position = arguments.Attribute.CommonConstructorArguments.Length; 374foreach (var namedArg in arguments.Attribute.NamedArguments) 382messageProvider.ReportInvalidNamedArgument(arguments.Diagnostics, arguments.AttributeSyntaxOpt, position, arguments.Attribute.AttributeClass, namedArg.Key);