108 references to Diagnostic
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (2)
Diagnostics\SuppressMessageAttributeWorkspaceTests.cs (2)
102
var diagnostic =
Diagnostic
("AD0001", null);
123
var diagnostic =
Diagnostic
("AD0001", null);
Microsoft.CodeAnalysis.Test.Utilities (104)
Diagnostics\SuppressMessageAttributeTests.cs (104)
48
Diagnostic
("Declaration", "C1"));
96
Diagnostic
("Declaration", "Goo1"));
129
Diagnostic
("Declaration", "N2"),
130
Diagnostic
("Declaration", "N3"));
165
Diagnostic
("Declaration", "N"));
227
Diagnostic
("Declaration", "N"),
228
Diagnostic
("Declaration", "N1"));
232
Diagnostic
("Declaration", "C1"));
282
Diagnostic
("Declaration", "A1"),
283
Diagnostic
("Declaration", "A3"),
284
Diagnostic
("Declaration", "A4"));
320
new[] {
Diagnostic
("Declaration", "M2") });
386
Diagnostic
("Comment", "// Comment"),
387
Diagnostic
("Comment", "/* Comment */"));
395
Diagnostic
("Comment", "' Comment"));
457
Diagnostic
("Comment", "// before module attributes"),
458
Diagnostic
("Comment", "// before class"),
459
Diagnostic
("Comment", "// after class"));
479
Diagnostic
("Comment", "' before module attributes"),
480
Diagnostic
("Comment", "' before class"),
481
Diagnostic
("Comment", "' after class"));
498
Diagnostic
("Token", "{").WithLocation(4, 1),
499
Diagnostic
("Token", "class").WithLocation(7, 9),
500
Diagnostic
("Token", "C").WithLocation(7, 15),
501
Diagnostic
("Token", "{").WithLocation(7, 17),
502
Diagnostic
("Token", "}").WithLocation(7, 18),
503
Diagnostic
("Token", "}").WithLocation(9, 1));
520
Diagnostic
("Token", "{").WithLocation(4, 1),
521
Diagnostic
("Token", "}").WithLocation(9, 1));
537
Diagnostic
("Token", "A").WithLocation(3, 11),
538
Diagnostic
("Token", "Class").WithLocation(5, 9),
539
Diagnostic
("Token", "C").WithLocation(5, 15),
540
Diagnostic
("Token", "End").WithLocation(6, 9),
541
Diagnostic
("Token", "Class").WithLocation(6, 13),
542
Diagnostic
("Token", "End").WithLocation(8, 1));
558
Diagnostic
("Token", "A").WithLocation(3, 11),
559
Diagnostic
("Token", "End").WithLocation(8, 1));
573
diagnostics:
Diagnostic
("Comment", "' In root namespace").WithLocation(3, 1));
601
Diagnostic
("Token", "{").WithLocation(5, 1),
602
Diagnostic
("Token", "}").WithLocation(20, 1));
638
Diagnostic
("Token", "N").WithLocation(4, 11),
639
Diagnostic
("Token", "End").WithLocation(28, 1));
658
Diagnostic
("Token", "{"),
659
Diagnostic
("Token", "}"));
680
Diagnostic
("Comment", "// before module attributes"),
681
Diagnostic
("Comment", "// before enum"),
682
Diagnostic
("Comment", "// after Field1 declaration"),
683
Diagnostic
("Comment", "// after Field2 declaration"),
684
Diagnostic
("Comment", "// after enum"));
703
Diagnostic
("Token", "C"),
704
Diagnostic
("Token", "End"));
721
Diagnostic
("Token", "{"),
722
Diagnostic
("Token", "}"));
740
Diagnostic
("Token", "C"),
741
Diagnostic
("Token", "End"));
759
Diagnostic
("Token", "{").WithLocation(5, 5),
760
Diagnostic
("Token", "remove").WithLocation(8, 9));
780
Diagnostic
("Token", ")"),
781
Diagnostic
("Token", "RemoveHandler"));
799
Diagnostic
("Token", "}").WithLocation(6, 14),
800
Diagnostic
("Token", "}").WithLocation(9, 5));
820
Diagnostic
("Token", "AddHandler"),
821
Diagnostic
("Token", "RaiseEvent"));
842
Diagnostic
("Token", "RemoveHandler"),
843
Diagnostic
("Token", "End"));
866
Diagnostic
("Token", "{").WithLocation(5, 1),
867
Diagnostic
("Token", "}").WithLocation(15, 1));
892
Diagnostic
("Token", "C").WithLocation(4, 7),
893
Diagnostic
("Token", "End").WithLocation(17, 1));
912
Diagnostic
("Token", "{").WithLocation(6, 5),
913
Diagnostic
("Token", "set").WithLocation(9, 9));
934
Diagnostic
("Token", "Integer").WithLocation(4, 28),
935
Diagnostic
("Token", "Set").WithLocation(9, 9));
954
Diagnostic
("Token", "{").WithLocation(6, 5),
955
Diagnostic
("Token", "set").WithLocation(9, 9));
976
Diagnostic
("Token", "Get").WithLocation(7, 13),
977
Diagnostic
("Token", "End").WithLocation(12, 5));
996
Diagnostic
("Token", ";").WithLocation(4, 10),
997
Diagnostic
("Token", "}").WithLocation(11, 1));
1016
Diagnostic
("Token", "{").WithLocation(6, 5),
1017
Diagnostic
("Token", "set").WithLocation(9, 9));
1036
Diagnostic
("Token", "}").WithLocation(7, 25),
1037
Diagnostic
("Token", "}").WithLocation(10, 5));
1056
Diagnostic
("Token", "{").WithLocation(5, 1),
1057
Diagnostic
("Token", "}").WithLocation(11, 1));
1077
Diagnostic
("Token", "C").WithLocation(4, 26),
1078
Diagnostic
("Token", "End").WithLocation(12, 1));
1095
Diagnostic
("Token", "{").WithLocation(3, 1),
1096
Diagnostic
("Token", "}").WithLocation(9, 1));
1111
Diagnostic
("Token", "C").WithLocation(2, 7),
1112
Diagnostic
("Token", "End").WithLocation(7, 1));
1131
Diagnostic
("Token", "{").WithLocation(8, 1),
1132
Diagnostic
("Token", "}").WithLocation(11, 1));
1146
Diagnostic
("Token", "C").WithLocation(2, 7),
1147
Diagnostic
("Token", "End").WithLocation(6, 1));
1161
Diagnostic
("Token", "{").WithLocation(3, 1),
1162
Diagnostic
("Token", "}").WithLocation(6, 1));
1181
Diagnostic
("Token", "{").WithLocation(3, 1),
1182
Diagnostic
("Token", "}").WithLocation(11, 1));
1198
Diagnostic
("Token", "C").WithLocation(2, 7),
1199
Diagnostic
("Token", "End").WithLocation(8, 1));
1322
Diagnostic
("Declaration", "C"));
1340
Diagnostic
("Declaration", "C"));
1359
Diagnostic
("TypeDeclaration", "C").WithLocation(9, 7));
Microsoft.CodeAnalysis.UnitTests (2)
Diagnostics\SuppressMessageAttributeCompilerTests.cs (2)
101
var baseDiagnostic =
Diagnostic
("AD0001", null).WithLocation(1, 1);
161
var diagnostic =
Diagnostic
("AD0001", null)