206 references to WRN_AttributeLocationOnBadDeclaration
Microsoft.CodeAnalysis.CSharp (4)
Errors\ErrorFacts.cs (2)
325
case ErrorCode.
WRN_AttributeLocationOnBadDeclaration
:
957
case ErrorCode.
WRN_AttributeLocationOnBadDeclaration
:
Generated\ErrorFacts.Generated.cs (1)
52
case ErrorCode.
WRN_AttributeLocationOnBadDeclaration
:
Symbols\Symbol_Attributes.cs (1)
718
diagnostics.Add(ErrorCode.
WRN_AttributeLocationOnBadDeclaration
,
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (194)
Attributes\AttributeTests.cs (8)
2336
Diagnostic(ErrorCode.
WRN_AttributeLocationOnBadDeclaration
, "field").WithArguments("field", "property").WithLocation(9, 6),
2339
Diagnostic(ErrorCode.
WRN_AttributeLocationOnBadDeclaration
, "field").WithArguments("field", "property").WithLocation(6, 6)
2360
Diagnostic(ErrorCode.
WRN_AttributeLocationOnBadDeclaration
, "field").WithArguments("field", "method, return").WithLocation(6, 21),
2363
Diagnostic(ErrorCode.
WRN_AttributeLocationOnBadDeclaration
, "field").WithArguments("field", "method, return").WithLocation(7, 22),
2366
Diagnostic(ErrorCode.
WRN_AttributeLocationOnBadDeclaration
, "field").WithArguments("field", "method, return").WithLocation(8, 22)
2531
Diagnostic(ErrorCode.
WRN_AttributeLocationOnBadDeclaration
, "field").WithArguments("field", "property").WithLocation(10, 6),
2537
Diagnostic(ErrorCode.
WRN_AttributeLocationOnBadDeclaration
, "field").WithArguments("field", "property").WithLocation(7, 6)
5874
Diagnostic(ErrorCode.
WRN_AttributeLocationOnBadDeclaration
, "method").WithArguments("method", "type"));
Attributes\AttributeTests_Locations.cs (185)
104
Diagnostic(ErrorCode.
WRN_AttributeLocationOnBadDeclaration
, "assembly").WithArguments("assembly", "type"),
106
Diagnostic(ErrorCode.
WRN_AttributeLocationOnBadDeclaration
, "module").WithArguments("module", "type"),
108
Diagnostic(ErrorCode.
WRN_AttributeLocationOnBadDeclaration
, "method").WithArguments("method", "type"),
110
Diagnostic(ErrorCode.
WRN_AttributeLocationOnBadDeclaration
, "field").WithArguments("field", "type"),
112
Diagnostic(ErrorCode.
WRN_AttributeLocationOnBadDeclaration
, "property").WithArguments("property", "type"),
114
Diagnostic(ErrorCode.
WRN_AttributeLocationOnBadDeclaration
, "event").WithArguments("event", "type"),
116
Diagnostic(ErrorCode.
WRN_AttributeLocationOnBadDeclaration
, "return").WithArguments("return", "type"),
118
Diagnostic(ErrorCode.
WRN_AttributeLocationOnBadDeclaration
, "param").WithArguments("param", "type"),
120
Diagnostic(ErrorCode.
WRN_AttributeLocationOnBadDeclaration
, "typevar").WithArguments("typevar", "type"),
152
Diagnostic(ErrorCode.
WRN_AttributeLocationOnBadDeclaration
, "assembly").WithArguments("assembly", "type"),
154
Diagnostic(ErrorCode.
WRN_AttributeLocationOnBadDeclaration
, "module").WithArguments("module", "type"),
156
Diagnostic(ErrorCode.
WRN_AttributeLocationOnBadDeclaration
, "method").WithArguments("method", "type"),
158
Diagnostic(ErrorCode.
WRN_AttributeLocationOnBadDeclaration
, "field").WithArguments("field", "type"),
160
Diagnostic(ErrorCode.
WRN_AttributeLocationOnBadDeclaration
, "property").WithArguments("property", "type"),
162
Diagnostic(ErrorCode.
WRN_AttributeLocationOnBadDeclaration
, "event").WithArguments("event", "type"),
164
Diagnostic(ErrorCode.
WRN_AttributeLocationOnBadDeclaration
, "return").WithArguments("return", "type"),
166
Diagnostic(ErrorCode.
WRN_AttributeLocationOnBadDeclaration
, "param").WithArguments("param", "type"),
168
Diagnostic(ErrorCode.
WRN_AttributeLocationOnBadDeclaration
, "typevar").WithArguments("typevar", "type"),
200
Diagnostic(ErrorCode.
WRN_AttributeLocationOnBadDeclaration
, "assembly").WithArguments("assembly", "type"),
202
Diagnostic(ErrorCode.
WRN_AttributeLocationOnBadDeclaration
, "module").WithArguments("module", "type"),
204
Diagnostic(ErrorCode.
WRN_AttributeLocationOnBadDeclaration
, "method").WithArguments("method", "type"),
206
Diagnostic(ErrorCode.
WRN_AttributeLocationOnBadDeclaration
, "field").WithArguments("field", "type"),
208
Diagnostic(ErrorCode.
WRN_AttributeLocationOnBadDeclaration
, "property").WithArguments("property", "type"),
210
Diagnostic(ErrorCode.
WRN_AttributeLocationOnBadDeclaration
, "event").WithArguments("event", "type"),
212
Diagnostic(ErrorCode.
WRN_AttributeLocationOnBadDeclaration
, "return").WithArguments("return", "type"),
214
Diagnostic(ErrorCode.
WRN_AttributeLocationOnBadDeclaration
, "param").WithArguments("param", "type"),
216
Diagnostic(ErrorCode.
WRN_AttributeLocationOnBadDeclaration
, "typevar").WithArguments("typevar", "type"),
248
Diagnostic(ErrorCode.
WRN_AttributeLocationOnBadDeclaration
, "assembly").WithArguments("assembly", "type"),
250
Diagnostic(ErrorCode.
WRN_AttributeLocationOnBadDeclaration
, "module").WithArguments("module", "type"),
252
Diagnostic(ErrorCode.
WRN_AttributeLocationOnBadDeclaration
, "method").WithArguments("method", "type"),
254
Diagnostic(ErrorCode.
WRN_AttributeLocationOnBadDeclaration
, "field").WithArguments("field", "type"),
256
Diagnostic(ErrorCode.
WRN_AttributeLocationOnBadDeclaration
, "property").WithArguments("property", "type"),
258
Diagnostic(ErrorCode.
WRN_AttributeLocationOnBadDeclaration
, "event").WithArguments("event", "type"),
260
Diagnostic(ErrorCode.
WRN_AttributeLocationOnBadDeclaration
, "return").WithArguments("return", "type"),
262
Diagnostic(ErrorCode.
WRN_AttributeLocationOnBadDeclaration
, "param").WithArguments("param", "type"),
264
Diagnostic(ErrorCode.
WRN_AttributeLocationOnBadDeclaration
, "typevar").WithArguments("typevar", "type"),
296
Diagnostic(ErrorCode.
WRN_AttributeLocationOnBadDeclaration
, "assembly").WithArguments("assembly", "type"),
298
Diagnostic(ErrorCode.
WRN_AttributeLocationOnBadDeclaration
, "module").WithArguments("module", "type"),
300
Diagnostic(ErrorCode.
WRN_AttributeLocationOnBadDeclaration
, "method").WithArguments("method", "type"),
302
Diagnostic(ErrorCode.
WRN_AttributeLocationOnBadDeclaration
, "field").WithArguments("field", "type"),
304
Diagnostic(ErrorCode.
WRN_AttributeLocationOnBadDeclaration
, "property").WithArguments("property", "type"),
306
Diagnostic(ErrorCode.
WRN_AttributeLocationOnBadDeclaration
, "event").WithArguments("event", "type"),
308
Diagnostic(ErrorCode.
WRN_AttributeLocationOnBadDeclaration
, "return").WithArguments("return", "type"),
310
Diagnostic(ErrorCode.
WRN_AttributeLocationOnBadDeclaration
, "param").WithArguments("param", "type"),
312
Diagnostic(ErrorCode.
WRN_AttributeLocationOnBadDeclaration
, "typevar").WithArguments("typevar", "type"),
344
Diagnostic(ErrorCode.
WRN_AttributeLocationOnBadDeclaration
, "assembly").WithArguments("assembly", "type"),
346
Diagnostic(ErrorCode.
WRN_AttributeLocationOnBadDeclaration
, "module").WithArguments("module", "type"),
348
Diagnostic(ErrorCode.
WRN_AttributeLocationOnBadDeclaration
, "method").WithArguments("method", "type"),
350
Diagnostic(ErrorCode.
WRN_AttributeLocationOnBadDeclaration
, "field").WithArguments("field", "type"),
352
Diagnostic(ErrorCode.
WRN_AttributeLocationOnBadDeclaration
, "property").WithArguments("property", "type"),
354
Diagnostic(ErrorCode.
WRN_AttributeLocationOnBadDeclaration
, "event").WithArguments("event", "type"),
356
Diagnostic(ErrorCode.
WRN_AttributeLocationOnBadDeclaration
, "return").WithArguments("return", "type"),
358
Diagnostic(ErrorCode.
WRN_AttributeLocationOnBadDeclaration
, "param").WithArguments("param", "type"),
360
Diagnostic(ErrorCode.
WRN_AttributeLocationOnBadDeclaration
, "typevar").WithArguments("typevar", "type"),
390
Diagnostic(ErrorCode.
WRN_AttributeLocationOnBadDeclaration
, "assembly").WithArguments("assembly", "type, return"),
392
Diagnostic(ErrorCode.
WRN_AttributeLocationOnBadDeclaration
, "module").WithArguments("module", "type, return"),
394
Diagnostic(ErrorCode.
WRN_AttributeLocationOnBadDeclaration
, "method").WithArguments("method", "type, return"),
396
Diagnostic(ErrorCode.
WRN_AttributeLocationOnBadDeclaration
, "field").WithArguments("field", "type, return"),
398
Diagnostic(ErrorCode.
WRN_AttributeLocationOnBadDeclaration
, "property").WithArguments("property", "type, return"),
400
Diagnostic(ErrorCode.
WRN_AttributeLocationOnBadDeclaration
, "event").WithArguments("event", "type, return"),
402
Diagnostic(ErrorCode.
WRN_AttributeLocationOnBadDeclaration
, "param").WithArguments("param", "type, return"),
404
Diagnostic(ErrorCode.
WRN_AttributeLocationOnBadDeclaration
, "typevar").WithArguments("typevar", "type, return"),
437
Diagnostic(ErrorCode.
WRN_AttributeLocationOnBadDeclaration
, "assembly").WithArguments("assembly", "method, return"),
439
Diagnostic(ErrorCode.
WRN_AttributeLocationOnBadDeclaration
, "module").WithArguments("module", "method, return"),
441
Diagnostic(ErrorCode.
WRN_AttributeLocationOnBadDeclaration
, "type").WithArguments("type", "method, return"),
443
Diagnostic(ErrorCode.
WRN_AttributeLocationOnBadDeclaration
, "field").WithArguments("field", "method, return"),
445
Diagnostic(ErrorCode.
WRN_AttributeLocationOnBadDeclaration
, "property").WithArguments("property", "method, return"),
447
Diagnostic(ErrorCode.
WRN_AttributeLocationOnBadDeclaration
, "event").WithArguments("event", "method, return"),
449
Diagnostic(ErrorCode.
WRN_AttributeLocationOnBadDeclaration
, "param").WithArguments("param", "method, return"),
451
Diagnostic(ErrorCode.
WRN_AttributeLocationOnBadDeclaration
, "typevar").WithArguments("typevar", "method, return"),
484
Diagnostic(ErrorCode.
WRN_AttributeLocationOnBadDeclaration
, "assembly").WithArguments("assembly", "field"),
486
Diagnostic(ErrorCode.
WRN_AttributeLocationOnBadDeclaration
, "module").WithArguments("module", "field"),
488
Diagnostic(ErrorCode.
WRN_AttributeLocationOnBadDeclaration
, "type").WithArguments("type", "field"),
490
Diagnostic(ErrorCode.
WRN_AttributeLocationOnBadDeclaration
, "method").WithArguments("method", "field"),
492
Diagnostic(ErrorCode.
WRN_AttributeLocationOnBadDeclaration
, "property").WithArguments("property", "field"),
494
Diagnostic(ErrorCode.
WRN_AttributeLocationOnBadDeclaration
, "event").WithArguments("event", "field"),
496
Diagnostic(ErrorCode.
WRN_AttributeLocationOnBadDeclaration
, "return").WithArguments("return", "field"),
498
Diagnostic(ErrorCode.
WRN_AttributeLocationOnBadDeclaration
, "param").WithArguments("param", "field"),
500
Diagnostic(ErrorCode.
WRN_AttributeLocationOnBadDeclaration
, "typevar").WithArguments("typevar", "field"),
535
Diagnostic(ErrorCode.
WRN_AttributeLocationOnBadDeclaration
, "assembly").WithArguments("assembly", "field"),
537
Diagnostic(ErrorCode.
WRN_AttributeLocationOnBadDeclaration
, "module").WithArguments("module", "field"),
539
Diagnostic(ErrorCode.
WRN_AttributeLocationOnBadDeclaration
, "type").WithArguments("type", "field"),
541
Diagnostic(ErrorCode.
WRN_AttributeLocationOnBadDeclaration
, "method").WithArguments("method", "field"),
543
Diagnostic(ErrorCode.
WRN_AttributeLocationOnBadDeclaration
, "property").WithArguments("property", "field"),
545
Diagnostic(ErrorCode.
WRN_AttributeLocationOnBadDeclaration
, "event").WithArguments("event", "field"),
547
Diagnostic(ErrorCode.
WRN_AttributeLocationOnBadDeclaration
, "return").WithArguments("return", "field"),
549
Diagnostic(ErrorCode.
WRN_AttributeLocationOnBadDeclaration
, "param").WithArguments("param", "field"),
551
Diagnostic(ErrorCode.
WRN_AttributeLocationOnBadDeclaration
, "typevar").WithArguments("typevar", "field"),
584
Diagnostic(ErrorCode.
WRN_AttributeLocationOnBadDeclaration
, "assembly").WithArguments("assembly", "field, property").WithLocation(10, 6),
586
Diagnostic(ErrorCode.
WRN_AttributeLocationOnBadDeclaration
, "module").WithArguments("module", "field, property").WithLocation(11, 6),
588
Diagnostic(ErrorCode.
WRN_AttributeLocationOnBadDeclaration
, "type").WithArguments("type", "field, property").WithLocation(12, 6),
590
Diagnostic(ErrorCode.
WRN_AttributeLocationOnBadDeclaration
, "method").WithArguments("method", "field, property").WithLocation(13, 6),
592
Diagnostic(ErrorCode.
WRN_AttributeLocationOnBadDeclaration
, "event").WithArguments("event", "field, property").WithLocation(16, 6),
594
Diagnostic(ErrorCode.
WRN_AttributeLocationOnBadDeclaration
, "return").WithArguments("return", "field, property").WithLocation(17, 6),
596
Diagnostic(ErrorCode.
WRN_AttributeLocationOnBadDeclaration
, "param").WithArguments("param", "field, property").WithLocation(18, 6),
598
Diagnostic(ErrorCode.
WRN_AttributeLocationOnBadDeclaration
, "typevar").WithArguments("typevar", "field, property").WithLocation(19, 6),
636
Diagnostic(ErrorCode.
WRN_AttributeLocationOnBadDeclaration
, "assembly").WithArguments("assembly", "method, return"),
638
Diagnostic(ErrorCode.
WRN_AttributeLocationOnBadDeclaration
, "module").WithArguments("module", "method, return"),
640
Diagnostic(ErrorCode.
WRN_AttributeLocationOnBadDeclaration
, "type").WithArguments("type", "method, return"),
642
Diagnostic(ErrorCode.
WRN_AttributeLocationOnBadDeclaration
, "field").WithArguments("field", "method, return"),
644
Diagnostic(ErrorCode.
WRN_AttributeLocationOnBadDeclaration
, "property").WithArguments("property", "method, return"),
646
Diagnostic(ErrorCode.
WRN_AttributeLocationOnBadDeclaration
, "event").WithArguments("event", "method, return"),
648
Diagnostic(ErrorCode.
WRN_AttributeLocationOnBadDeclaration
, "param").WithArguments("param", "method, return"),
650
Diagnostic(ErrorCode.
WRN_AttributeLocationOnBadDeclaration
, "typevar").WithArguments("typevar", "method, return"),
688
Diagnostic(ErrorCode.
WRN_AttributeLocationOnBadDeclaration
, "assembly").WithArguments("assembly", "method, param, return"),
690
Diagnostic(ErrorCode.
WRN_AttributeLocationOnBadDeclaration
, "module").WithArguments("module", "method, param, return"),
692
Diagnostic(ErrorCode.
WRN_AttributeLocationOnBadDeclaration
, "type").WithArguments("type", "method, param, return"),
694
Diagnostic(ErrorCode.
WRN_AttributeLocationOnBadDeclaration
, "field").WithArguments("field", "method, param, return"),
696
Diagnostic(ErrorCode.
WRN_AttributeLocationOnBadDeclaration
, "property").WithArguments("property", "method, param, return"),
698
Diagnostic(ErrorCode.
WRN_AttributeLocationOnBadDeclaration
, "event").WithArguments("event", "method, param, return"),
700
Diagnostic(ErrorCode.
WRN_AttributeLocationOnBadDeclaration
, "typevar").WithArguments("typevar", "method, param, return"),
733
Diagnostic(ErrorCode.
WRN_AttributeLocationOnBadDeclaration
, "assembly").WithArguments("assembly", "method, field, event"),
735
Diagnostic(ErrorCode.
WRN_AttributeLocationOnBadDeclaration
, "module").WithArguments("module", "method, field, event"),
737
Diagnostic(ErrorCode.
WRN_AttributeLocationOnBadDeclaration
, "type").WithArguments("type", "method, field, event"),
739
Diagnostic(ErrorCode.
WRN_AttributeLocationOnBadDeclaration
, "property").WithArguments("property", "method, field, event"),
741
Diagnostic(ErrorCode.
WRN_AttributeLocationOnBadDeclaration
, "return").WithArguments("return", "method, field, event"),
743
Diagnostic(ErrorCode.
WRN_AttributeLocationOnBadDeclaration
, "param").WithArguments("param", "method, field, event"),
745
Diagnostic(ErrorCode.
WRN_AttributeLocationOnBadDeclaration
, "typevar").WithArguments("typevar", "method, field, event"),
780
Diagnostic(ErrorCode.
WRN_AttributeLocationOnBadDeclaration
, "assembly").WithArguments("assembly", "method, event"),
782
Diagnostic(ErrorCode.
WRN_AttributeLocationOnBadDeclaration
, "module").WithArguments("module", "method, event"),
784
Diagnostic(ErrorCode.
WRN_AttributeLocationOnBadDeclaration
, "type").WithArguments("type", "method, event"),
786
Diagnostic(ErrorCode.
WRN_AttributeLocationOnBadDeclaration
, "field").WithArguments("field", "method, event"),
788
Diagnostic(ErrorCode.
WRN_AttributeLocationOnBadDeclaration
, "property").WithArguments("property", "method, event"),
790
Diagnostic(ErrorCode.
WRN_AttributeLocationOnBadDeclaration
, "return").WithArguments("return", "method, event"),
792
Diagnostic(ErrorCode.
WRN_AttributeLocationOnBadDeclaration
, "param").WithArguments("param", "method, event"),
794
Diagnostic(ErrorCode.
WRN_AttributeLocationOnBadDeclaration
, "typevar").WithArguments("typevar", "method, event"),
827
Diagnostic(ErrorCode.
WRN_AttributeLocationOnBadDeclaration
, "assembly").WithArguments("assembly", "event"),
829
Diagnostic(ErrorCode.
WRN_AttributeLocationOnBadDeclaration
, "module").WithArguments("module", "event"),
831
Diagnostic(ErrorCode.
WRN_AttributeLocationOnBadDeclaration
, "type").WithArguments("type", "event"),
833
Diagnostic(ErrorCode.
WRN_AttributeLocationOnBadDeclaration
, "method").WithArguments("method", "event"),
835
Diagnostic(ErrorCode.
WRN_AttributeLocationOnBadDeclaration
, "field").WithArguments("field", "event"),
837
Diagnostic(ErrorCode.
WRN_AttributeLocationOnBadDeclaration
, "property").WithArguments("property", "event"),
839
Diagnostic(ErrorCode.
WRN_AttributeLocationOnBadDeclaration
, "return").WithArguments("return", "event"),
841
Diagnostic(ErrorCode.
WRN_AttributeLocationOnBadDeclaration
, "param").WithArguments("param", "event"),
843
Diagnostic(ErrorCode.
WRN_AttributeLocationOnBadDeclaration
, "typevar").WithArguments("typevar", "event"),
881
Diagnostic(ErrorCode.
WRN_AttributeLocationOnBadDeclaration
, "assembly").WithArguments("assembly", "method, param, return"),
883
Diagnostic(ErrorCode.
WRN_AttributeLocationOnBadDeclaration
, "module").WithArguments("module", "method, param, return"),
885
Diagnostic(ErrorCode.
WRN_AttributeLocationOnBadDeclaration
, "type").WithArguments("type", "method, param, return"),
887
Diagnostic(ErrorCode.
WRN_AttributeLocationOnBadDeclaration
, "field").WithArguments("field", "method, param, return"),
889
Diagnostic(ErrorCode.
WRN_AttributeLocationOnBadDeclaration
, "property").WithArguments("property", "method, param, return"),
891
Diagnostic(ErrorCode.
WRN_AttributeLocationOnBadDeclaration
, "event").WithArguments("event", "method, param, return"),
893
Diagnostic(ErrorCode.
WRN_AttributeLocationOnBadDeclaration
, "typevar").WithArguments("typevar", "method, param, return"),
931
Diagnostic(ErrorCode.
WRN_AttributeLocationOnBadDeclaration
, "assembly").WithArguments("assembly", "method, param, return"),
933
Diagnostic(ErrorCode.
WRN_AttributeLocationOnBadDeclaration
, "module").WithArguments("module", "method, param, return"),
935
Diagnostic(ErrorCode.
WRN_AttributeLocationOnBadDeclaration
, "type").WithArguments("type", "method, param, return"),
937
Diagnostic(ErrorCode.
WRN_AttributeLocationOnBadDeclaration
, "field").WithArguments("field", "method, param, return"),
939
Diagnostic(ErrorCode.
WRN_AttributeLocationOnBadDeclaration
, "property").WithArguments("property", "method, param, return"),
941
Diagnostic(ErrorCode.
WRN_AttributeLocationOnBadDeclaration
, "event").WithArguments("event", "method, param, return"),
943
Diagnostic(ErrorCode.
WRN_AttributeLocationOnBadDeclaration
, "typevar").WithArguments("typevar", "method, param, return"),
978
Diagnostic(ErrorCode.
WRN_AttributeLocationOnBadDeclaration
, "assembly").WithArguments("assembly", "typevar"),
980
Diagnostic(ErrorCode.
WRN_AttributeLocationOnBadDeclaration
, "module").WithArguments("module", "typevar"),
982
Diagnostic(ErrorCode.
WRN_AttributeLocationOnBadDeclaration
, "type").WithArguments("type", "typevar"),
984
Diagnostic(ErrorCode.
WRN_AttributeLocationOnBadDeclaration
, "method").WithArguments("method", "typevar"),
986
Diagnostic(ErrorCode.
WRN_AttributeLocationOnBadDeclaration
, "field").WithArguments("field", "typevar"),
988
Diagnostic(ErrorCode.
WRN_AttributeLocationOnBadDeclaration
, "property").WithArguments("property", "typevar"),
990
Diagnostic(ErrorCode.
WRN_AttributeLocationOnBadDeclaration
, "event").WithArguments("event", "typevar"),
992
Diagnostic(ErrorCode.
WRN_AttributeLocationOnBadDeclaration
, "return").WithArguments("return", "typevar"),
994
Diagnostic(ErrorCode.
WRN_AttributeLocationOnBadDeclaration
, "param").WithArguments("param", "typevar"),
1029
Diagnostic(ErrorCode.
WRN_AttributeLocationOnBadDeclaration
, "assembly").WithArguments("assembly", "param"),
1031
Diagnostic(ErrorCode.
WRN_AttributeLocationOnBadDeclaration
, "module").WithArguments("module", "param"),
1033
Diagnostic(ErrorCode.
WRN_AttributeLocationOnBadDeclaration
, "type").WithArguments("type", "param"),
1035
Diagnostic(ErrorCode.
WRN_AttributeLocationOnBadDeclaration
, "method").WithArguments("method", "param"),
1037
Diagnostic(ErrorCode.
WRN_AttributeLocationOnBadDeclaration
, "field").WithArguments("field", "param"),
1039
Diagnostic(ErrorCode.
WRN_AttributeLocationOnBadDeclaration
, "property").WithArguments("property", "param"),
1041
Diagnostic(ErrorCode.
WRN_AttributeLocationOnBadDeclaration
, "event").WithArguments("event", "param"),
1043
Diagnostic(ErrorCode.
WRN_AttributeLocationOnBadDeclaration
, "return").WithArguments("return", "param"),
1045
Diagnostic(ErrorCode.
WRN_AttributeLocationOnBadDeclaration
, "typevar").WithArguments("typevar", "param"),
1077
Diagnostic(ErrorCode.
WRN_AttributeLocationOnBadDeclaration
, "assembly").WithArguments("assembly", "param"),
1079
Diagnostic(ErrorCode.
WRN_AttributeLocationOnBadDeclaration
, "module").WithArguments("module", "param"),
1081
Diagnostic(ErrorCode.
WRN_AttributeLocationOnBadDeclaration
, "type").WithArguments("type", "param"),
1083
Diagnostic(ErrorCode.
WRN_AttributeLocationOnBadDeclaration
, "method").WithArguments("method", "param"),
1085
Diagnostic(ErrorCode.
WRN_AttributeLocationOnBadDeclaration
, "field").WithArguments("field", "param"),
1087
Diagnostic(ErrorCode.
WRN_AttributeLocationOnBadDeclaration
, "property").WithArguments("property", "param"),
1089
Diagnostic(ErrorCode.
WRN_AttributeLocationOnBadDeclaration
, "event").WithArguments("event", "param"),
1091
Diagnostic(ErrorCode.
WRN_AttributeLocationOnBadDeclaration
, "return").WithArguments("return", "param"),
1093
Diagnostic(ErrorCode.
WRN_AttributeLocationOnBadDeclaration
, "typevar").WithArguments("typevar", "param"),
1131
Diagnostic(ErrorCode.
WRN_AttributeLocationOnBadDeclaration
, "assembly").WithArguments("assembly", "param"),
1133
Diagnostic(ErrorCode.
WRN_AttributeLocationOnBadDeclaration
, "module").WithArguments("module", "param"),
1135
Diagnostic(ErrorCode.
WRN_AttributeLocationOnBadDeclaration
, "type").WithArguments("type", "param"),
1137
Diagnostic(ErrorCode.
WRN_AttributeLocationOnBadDeclaration
, "method").WithArguments("method", "param"),
1139
Diagnostic(ErrorCode.
WRN_AttributeLocationOnBadDeclaration
, "field").WithArguments("field", "param"),
1141
Diagnostic(ErrorCode.
WRN_AttributeLocationOnBadDeclaration
, "property").WithArguments("property", "param"),
1143
Diagnostic(ErrorCode.
WRN_AttributeLocationOnBadDeclaration
, "event").WithArguments("event", "param"),
1145
Diagnostic(ErrorCode.
WRN_AttributeLocationOnBadDeclaration
, "return").WithArguments("return", "param"),
1147
Diagnostic(ErrorCode.
WRN_AttributeLocationOnBadDeclaration
, "typevar").WithArguments("typevar", "param"),
Diagnostics\GetDiagnosticsTests.cs (1)
1047
Diagnostic(ErrorCode.
WRN_AttributeLocationOnBadDeclaration
, "property").WithArguments("property", "field").WithLocation(5, 6));
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (8)
Semantics\PrimaryConstructorTests.cs (3)
2982
Diagnostic(ErrorCode.
WRN_AttributeLocationOnBadDeclaration
, "field").WithArguments("field", "param").WithLocation(10, 6),
2985
Diagnostic(ErrorCode.
WRN_AttributeLocationOnBadDeclaration
, "property").WithArguments("property", "param").WithLocation(11, 6),
3031
Diagnostic(ErrorCode.
WRN_AttributeLocationOnBadDeclaration
, "field").WithArguments("field", "param").WithLocation(8, 6),
Semantics\RecordTests.cs (5)
25310
Diagnostic(ErrorCode.
WRN_AttributeLocationOnBadDeclaration
, "method").WithArguments("method", "field, property, param").WithLocation(8, 6)
25385
Diagnostic(ErrorCode.
WRN_AttributeLocationOnBadDeclaration
, "field").WithArguments("field", "param").WithLocation(27, 6),
25388
Diagnostic(ErrorCode.
WRN_AttributeLocationOnBadDeclaration
, "property").WithArguments("property", "param").WithLocation(28, 6),
25469
Diagnostic(ErrorCode.
WRN_AttributeLocationOnBadDeclaration
, "field").WithArguments("field", "param").WithLocation(27, 6),
25472
Diagnostic(ErrorCode.
WRN_AttributeLocationOnBadDeclaration
, "property").WithArguments("property", "param").WithLocation(28, 6),