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