40 references to Diagnostic
Microsoft.ML.CodeAnalyzer.Tests (40)
Code\BestFriendOnPublicDeclarationTest.cs (10)
25VerifyCS.Diagnostic().WithLocation(8, 6).WithArguments("PublicClass"), 26VerifyCS.Diagnostic().WithLocation(11, 10).WithArguments("PublicField"), 27VerifyCS.Diagnostic().WithLocation(14, 10).WithArguments("PublicProperty"), 28VerifyCS.Diagnostic().WithLocation(20, 10).WithArguments("PublicMethod"), 29VerifyCS.Diagnostic().WithLocation(26, 10).WithArguments("PublicDelegate"), 30VerifyCS.Diagnostic().WithLocation(29, 10).WithArguments("PublicClass"), 31VerifyCS.Diagnostic().WithLocation(35, 6).WithArguments("PublicStruct"), 32VerifyCS.Diagnostic().WithLocation(40, 6).WithArguments("PublicEnum"), 33VerifyCS.Diagnostic().WithLocation(47, 6).WithArguments("PublicInterface"), 34VerifyCS.Diagnostic().WithLocation(102, 10).WithArguments("PublicMethod"),
Code\BestFriendTest.cs (11)
40VerifyCS.Diagnostic().WithLocation(10, 31).WithArguments("A"), 41VerifyCS.Diagnostic().WithLocation(11, 31).WithArguments("A"), 42VerifyCS.Diagnostic().WithLocation(11, 33).WithArguments("My"), 43VerifyCS.Diagnostic().WithLocation(14, 33).WithArguments("Awhile"), 44VerifyCS.Diagnostic().WithLocation(15, 33).WithArguments("And"), 45VerifyCS.Diagnostic().WithLocation(18, 13).WithArguments("A"), 46VerifyCS.Diagnostic().WithLocation(18, 25).WithArguments("A"), 48VerifyCS.Diagnostic().WithLocation(25, 13).WithArguments("IA"), 49VerifyCS.Diagnostic().WithLocation(25, 23).WithArguments("IA"), 50VerifyCS.Diagnostic().WithLocation(32, 38).WithArguments(".ctor"), 51VerifyCS.Diagnostic().WithLocation(38, 38).WithArguments(".ctor"),
Code\InstanceInitializerTest.cs (3)
37VerifyCS.Diagnostic().WithLocation(6, 21).WithArguments("_foo", "field"), 38VerifyCS.Diagnostic().WithLocation(10, 32).WithArguments("_blorg", "field"), 39VerifyCS.Diagnostic().WithLocation(13, 23).WithArguments("Bar", "property"),
Code\ParameterVariableNameTest.cs (9)
45VerifyCS.Diagnostic().WithLocation(8, 22).WithArguments("Unlimited", param), 46VerifyCS.Diagnostic().WithLocation(8, 37).WithArguments("POWER", param), 47VerifyCS.Diagnostic().WithLocation(10, 31).WithArguments("Tada", local), 48VerifyCS.Diagnostic().WithLocation(11, 20).WithArguments("FORMAT", local), 49VerifyCS.Diagnostic().WithLocation(12, 17).WithArguments("_coolSum", local), 50VerifyCS.Diagnostic().WithLocation(12, 53).WithArguments("CHAR", param), 51VerifyCS.Diagnostic().WithLocation(16, 37).WithArguments("Hello", param), 52VerifyCS.Diagnostic().WithLocation(16, 64).WithArguments("HelloAgain", param), 53VerifyCS.Diagnostic().WithLocation(18, 17).WithArguments("i_think_this_is_python", local),
Code\SingleVariableDeclarationTest.cs (3)
42VerifyCS.Diagnostic().WithLocation(6, 9).WithArguments("a', 'b', 'c"), 43VerifyCS.Diagnostic().WithLocation(8, 9).WithArguments("e', 'f"), 44VerifyCS.Diagnostic().WithLocation(17, 17).WithArguments("l', 'm"),
Code\TypeParamNameTest.cs (4)
33VerifyCS.Diagnostic().WithLocation(4, 26).WithArguments("hello"), 34VerifyCS.Diagnostic().WithLocation(6, 21).WithArguments("Tom"), 35VerifyCS.Diagnostic().WithLocation(8, 22).WithArguments("mytype"), 36VerifyCS.Diagnostic().WithLocation(10, 32).WithArguments("YourType"),