2 instantiations of VariableDeclarationTestAnalyzer
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (1)
Diagnostics\OperationAnalyzerTests.cs (1)
1015
.VerifyAnalyzerDiagnostics(new DiagnosticAnalyzer[] { new
VariableDeclarationTestAnalyzer
() }, null, null,
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (1)
Diagnostics\OperationAnalyzerTests.vb (1)
964
comp.VerifyAnalyzerDiagnostics({New
VariableDeclarationTestAnalyzer
}, Nothing, Nothing,
27 references to VariableDeclarationTestAnalyzer
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (8)
Diagnostics\OperationAnalyzerTests.cs (8)
1016
Diagnostic(
VariableDeclarationTestAnalyzer
.TooManyLocalVarDeclarationsDescriptor.Id, "int c1, c2, c3, c4;").WithLocation(9, 9),
1017
Diagnostic(
VariableDeclarationTestAnalyzer
.TooManyLocalVarDeclarationsDescriptor.Id, "C[] d1, d2, d3, d4 = { null, null };").WithLocation(10, 9),
1018
Diagnostic(
VariableDeclarationTestAnalyzer
.LocalVarInitializedDeclarationDescriptor.Id, "d4 = { null, null }").WithLocation(10, 25),
1019
Diagnostic(
VariableDeclarationTestAnalyzer
.TooManyLocalVarDeclarationsDescriptor.Id, "int e1 = 1, e2, e3, e4 = 10;").WithLocation(11, 9),
1020
Diagnostic(
VariableDeclarationTestAnalyzer
.LocalVarInitializedDeclarationDescriptor.Id, "e1 = 1").WithLocation(11, 13),
1021
Diagnostic(
VariableDeclarationTestAnalyzer
.LocalVarInitializedDeclarationDescriptor.Id, "e4 = 10").WithLocation(11, 29),
1022
Diagnostic(
VariableDeclarationTestAnalyzer
.TooManyLocalVarDeclarationsDescriptor.Id, "int f1, f2, f3, ;").WithLocation(12, 9),
1023
Diagnostic(
VariableDeclarationTestAnalyzer
.TooManyLocalVarDeclarationsDescriptor.Id, "int g1, g2, g3, g4 =;").WithLocation(13, 9));
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (19)
Diagnostics\OperationAnalyzerTests.vb (19)
965
Diagnostic(
VariableDeclarationTestAnalyzer
.LocalVarInitializedDeclarationDescriptor.Id, "a1").WithLocation(5, 13),
966
Diagnostic(
VariableDeclarationTestAnalyzer
.TooManyLocalVarDeclarationsDescriptor.Id, "Dim b1 As New Integer, b2, b3, b4 As New Goo(1)").WithLocation(6, 9),
967
Diagnostic(
VariableDeclarationTestAnalyzer
.LocalVarInitializedDeclarationDescriptor.Id, "b1").WithLocation(6, 13),
968
Diagnostic(
VariableDeclarationTestAnalyzer
.LocalVarInitializedDeclarationDescriptor.Id, "b2").WithLocation(6, 32),
969
Diagnostic(
VariableDeclarationTestAnalyzer
.LocalVarInitializedDeclarationDescriptor.Id, "b3").WithLocation(6, 36),
970
Diagnostic(
VariableDeclarationTestAnalyzer
.LocalVarInitializedDeclarationDescriptor.Id, "b4").WithLocation(6, 40),
971
Diagnostic(
VariableDeclarationTestAnalyzer
.TooManyLocalVarDeclarationsDescriptor.Id, "Dim c1, c2 As Integer, c3, c4 As Goo").WithLocation(7, 9),
972
Diagnostic(
VariableDeclarationTestAnalyzer
.TooManyLocalVarDeclarationsDescriptor.Id, "Dim e1 As Integer = 10, e2 = {1, 2, 3}, e3, e4 As C").WithLocation(9, 9),
973
Diagnostic(
VariableDeclarationTestAnalyzer
.LocalVarInitializedDeclarationDescriptor.Id, "e1").WithLocation(9, 13),
974
Diagnostic(
VariableDeclarationTestAnalyzer
.LocalVarInitializedDeclarationDescriptor.Id, "e2").WithLocation(9, 33),
975
Diagnostic(
VariableDeclarationTestAnalyzer
.LocalVarInitializedDeclarationDescriptor.Id, "f1").WithLocation(10, 13),
976
Diagnostic(
VariableDeclarationTestAnalyzer
.LocalVarInitializedDeclarationDescriptor.Id, "f2").WithLocation(10, 22),
977
Diagnostic(
VariableDeclarationTestAnalyzer
.TooManyLocalVarDeclarationsDescriptor.Id, "Dim h1, h2, , h3 As Integer").WithLocation(11, 9),
978
Diagnostic(
VariableDeclarationTestAnalyzer
.TooManyLocalVarDeclarationsDescriptor.Id, "Dim i1, i2, i3, i4 As New UndefType").WithLocation(12, 9),
979
Diagnostic(
VariableDeclarationTestAnalyzer
.TooManyLocalVarDeclarationsDescriptor.Id, "Dim j1, j2, j3, j4 As UndefType").WithLocation(13, 9),
980
Diagnostic(
VariableDeclarationTestAnalyzer
.TooManyLocalVarDeclarationsDescriptor.Id, "Dim k1 As Integer, k2, k3, k4 As New Goo(1)").WithLocation(14, 9),
981
Diagnostic(
VariableDeclarationTestAnalyzer
.LocalVarInitializedDeclarationDescriptor.Id, "k2").WithLocation(14, 28),
982
Diagnostic(
VariableDeclarationTestAnalyzer
.LocalVarInitializedDeclarationDescriptor.Id, "k3").WithLocation(14, 32),
983
Diagnostic(
VariableDeclarationTestAnalyzer
.LocalVarInitializedDeclarationDescriptor.Id, "k4").WithLocation(14, 36))