36 references to WRN_InvalidAttributeLocation
Microsoft.CodeAnalysis.CSharp (4)
Errors\ErrorFacts.cs (2)
326
case ErrorCode.
WRN_InvalidAttributeLocation
:
958
case ErrorCode.
WRN_InvalidAttributeLocation
:
Generated\ErrorFacts.Generated.cs (1)
53
case ErrorCode.
WRN_InvalidAttributeLocation
:
Symbols\Symbol_Attributes.cs (1)
689
diagnostics.Add(ErrorCode.
WRN_InvalidAttributeLocation
,
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (32)
Attributes\AttributeTests_Locations.cs (32)
122
Diagnostic(ErrorCode.
WRN_InvalidAttributeLocation
, "delegate").WithArguments("delegate", "type"));
170
Diagnostic(ErrorCode.
WRN_InvalidAttributeLocation
, "delegate").WithArguments("delegate", "type"));
218
Diagnostic(ErrorCode.
WRN_InvalidAttributeLocation
, "delegate").WithArguments("delegate", "type"));
266
Diagnostic(ErrorCode.
WRN_InvalidAttributeLocation
, "delegate").WithArguments("delegate", "type"));
314
Diagnostic(ErrorCode.
WRN_InvalidAttributeLocation
, "delegate").WithArguments("delegate", "type"));
362
Diagnostic(ErrorCode.
WRN_InvalidAttributeLocation
, "delegate").WithArguments("delegate", "type"));
406
Diagnostic(ErrorCode.
WRN_InvalidAttributeLocation
, "delegate").WithArguments("delegate", "type, return"));
453
Diagnostic(ErrorCode.
WRN_InvalidAttributeLocation
, "delegate").WithArguments("delegate", "method, return"));
502
Diagnostic(ErrorCode.
WRN_InvalidAttributeLocation
, "delegate").WithArguments("delegate", "field"),
553
Diagnostic(ErrorCode.
WRN_InvalidAttributeLocation
, "delegate").WithArguments("delegate", "field"));
600
Diagnostic(ErrorCode.
WRN_InvalidAttributeLocation
, "delegate").WithArguments("delegate", "field, property").WithLocation(20, 6));
652
Diagnostic(ErrorCode.
WRN_InvalidAttributeLocation
, "delegate").WithArguments("delegate", "method, return"));
702
Diagnostic(ErrorCode.
WRN_InvalidAttributeLocation
, "delegate").WithArguments("delegate", "method, param, return"));
747
Diagnostic(ErrorCode.
WRN_InvalidAttributeLocation
, "delegate").WithArguments("delegate", "method, field, event"),
796
Diagnostic(ErrorCode.
WRN_InvalidAttributeLocation
, "delegate").WithArguments("delegate", "method, event"));
845
Diagnostic(ErrorCode.
WRN_InvalidAttributeLocation
, "delegate").WithArguments("delegate", "event"));
895
Diagnostic(ErrorCode.
WRN_InvalidAttributeLocation
, "delegate").WithArguments("delegate", "method, param, return"));
945
Diagnostic(ErrorCode.
WRN_InvalidAttributeLocation
, "delegate").WithArguments("delegate", "method, param, return"));
996
Diagnostic(ErrorCode.
WRN_InvalidAttributeLocation
, "delegate").WithArguments("delegate", "typevar"));
1047
Diagnostic(ErrorCode.
WRN_InvalidAttributeLocation
, "delegate").WithArguments("delegate", "param"));
1095
Diagnostic(ErrorCode.
WRN_InvalidAttributeLocation
, "delegate").WithArguments("delegate", "param"));
1149
Diagnostic(ErrorCode.
WRN_InvalidAttributeLocation
, "delegate").WithArguments("delegate", "param"));
1175
Diagnostic(ErrorCode.
WRN_InvalidAttributeLocation
, "class").WithArguments("class", "type"),
1177
Diagnostic(ErrorCode.
WRN_InvalidAttributeLocation
, "struct").WithArguments("struct", "type"),
1179
Diagnostic(ErrorCode.
WRN_InvalidAttributeLocation
, "interface").WithArguments("interface", "type"),
1181
Diagnostic(ErrorCode.
WRN_InvalidAttributeLocation
, "delegate").WithArguments("delegate", "type"),
1183
Diagnostic(ErrorCode.
WRN_InvalidAttributeLocation
, "enum").WithArguments("enum", "type"),
1185
Diagnostic(ErrorCode.
WRN_InvalidAttributeLocation
, "add").WithArguments("add", "type"),
1187
Diagnostic(ErrorCode.
WRN_InvalidAttributeLocation
, "remove").WithArguments("remove", "type"),
1189
Diagnostic(ErrorCode.
WRN_InvalidAttributeLocation
, "get").WithArguments("get", "type"),
1191
Diagnostic(ErrorCode.
WRN_InvalidAttributeLocation
, "set").WithArguments("set", "type"));
1222
Diagnostic(ErrorCode.
WRN_InvalidAttributeLocation
, "goo").WithArguments("goo", "method, return"));