62 references to WRN_UnusedLocal
Microsoft.CodeAnalysis.VisualBasic (3)
Analysis\FlowAnalysis\DataFlowPass.vb (1)
203
Me.diagnostics.Add(ERRID.
WRN_UnusedLocal
, local.Locations(0), If(local.Name, "dummy"))
Errors\ErrorFacts.vb (1)
1428
ERRID.
WRN_UnusedLocal
,
Generated\ErrorFacts.Generated.vb (1)
76
ERRID.
WRN_UnusedLocal
,
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (7)
Emit\DynamicAnalysis\DynamicInstrumentationTests.vb (7)
1443
Diagnostic(ERRID.
WRN_UnusedLocal
, "y").WithArguments("y").WithLocation(3, 16),
1444
Diagnostic(ERRID.
WRN_UnusedLocal
, "o1").WithArguments("o1").WithLocation(14, 13),
1445
Diagnostic(ERRID.
WRN_UnusedLocal
, "aa").WithArguments("aa").WithLocation(6, 17),
1446
Diagnostic(ERRID.
WRN_UnusedLocal
, "o4").WithArguments("o4").WithLocation(14, 67),
1447
Diagnostic(ERRID.
WRN_UnusedLocal
, "bb").WithArguments("bb").WithLocation(6, 21),
1448
Diagnostic(ERRID.
WRN_UnusedLocal
, "cc").WithArguments("cc").WithLocation(7, 17),
1449
Diagnostic(ERRID.
WRN_UnusedLocal
, "dd").WithArguments("dd").WithLocation(7, 32))
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (8)
Compilation\VisualBasicCompilationOptionsTests.vb (8)
420
Diagnostic(ERRID.
WRN_UnusedLocal
, "x").WithArguments("x"),
421
Diagnostic(ERRID.
WRN_UnusedLocal
, "y").WithArguments("y"),
455
Diagnostic(ERRID.
WRN_UnusedLocal
, "x").WithArguments("x").WithWarningAsError(True),
456
Diagnostic(ERRID.
WRN_UnusedLocal
, "y").WithArguments("y").WithWarningAsError(True),
467
Diagnostic(ERRID.
WRN_UnusedLocal
, "x").WithArguments("x"),
468
Diagnostic(ERRID.
WRN_UnusedLocal
, "y").WithArguments("y"),
480
Diagnostic(ERRID.
WRN_UnusedLocal
, "x").WithArguments("x"),
481
Diagnostic(ERRID.
WRN_UnusedLocal
, "y").WithArguments("y"),
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (2)
StaticLocalDeclarationTests.vb (2)
389
Diagnostic(ERRID.
WRN_UnusedLocal
, "SLItem6").WithArguments("SLItem6"))
677
Diagnostic(ERRID.
WRN_UnusedLocal
, "SLItem2").WithArguments("SLItem2"))
Microsoft.CodeAnalysis.VisualBasic.Syntax.UnitTests (42)
Parser\ParseDirectives.vb (42)
2783
Diagnostic(ERRID.
WRN_UnusedLocal
, "d").WithArguments("d").WithLocation(8, 13))
2789
Diagnostic(ERRID.
WRN_UnusedLocal
, "d").WithArguments("d").WithLocation(8, 13).WithWarningAsError(True))
2798
Diagnostic(ERRID.
WRN_UnusedLocal
, "d").WithArguments("d").WithLocation(8, 13).WithWarningAsError(True))
2823
Diagnostic(ERRID.
WRN_UnusedLocal
, "d").WithArguments("d").WithLocation(9, 13))
2829
Diagnostic(ERRID.
WRN_UnusedLocal
, "d").WithArguments("d").WithLocation(9, 13).WithWarningAsError(True))
2838
Diagnostic(ERRID.
WRN_UnusedLocal
, "d").WithArguments("d").WithLocation(9, 13).WithWarningAsError(True))
2863
Diagnostic(ERRID.
WRN_UnusedLocal
, "d").WithArguments("d").WithLocation(9, 13))
2869
Diagnostic(ERRID.
WRN_UnusedLocal
, "d").WithArguments("d").WithLocation(9, 13).WithWarningAsError(True))
2878
Diagnostic(ERRID.
WRN_UnusedLocal
, "d").WithArguments("d").WithLocation(9, 13).WithWarningAsError(True))
2903
Diagnostic(ERRID.
WRN_UnusedLocal
, "d").WithArguments("d").WithLocation(9, 13))
2909
Diagnostic(ERRID.
WRN_UnusedLocal
, "d").WithArguments("d").WithLocation(9, 13).WithWarningAsError(True))
2918
Diagnostic(ERRID.
WRN_UnusedLocal
, "d").WithArguments("d").WithLocation(9, 13).WithWarningAsError(True))
2941
Diagnostic(ERRID.
WRN_UnusedLocal
, "a").WithArguments("a").WithLocation(4, 13),
2943
Diagnostic(ERRID.
WRN_UnusedLocal
, "d").WithArguments("d").WithLocation(8, 13))
2949
Diagnostic(ERRID.
WRN_UnusedLocal
, "a").WithArguments("a").WithLocation(4, 13).WithWarningAsError(True),
2951
Diagnostic(ERRID.
WRN_UnusedLocal
, "d").WithArguments("d").WithLocation(8, 13).WithWarningAsError(True))
2961
Diagnostic(ERRID.
WRN_UnusedLocal
, "a").WithArguments("a").WithLocation(4, 13).WithWarningAsError(True),
2963
Diagnostic(ERRID.
WRN_UnusedLocal
, "d").WithArguments("d").WithLocation(8, 13).WithWarningAsError(True))
2986
Diagnostic(ERRID.
WRN_UnusedLocal
, "a").WithArguments("a").WithLocation(4, 13),
2988
Diagnostic(ERRID.
WRN_UnusedLocal
, "d").WithArguments("d").WithLocation(8, 13))
2994
Diagnostic(ERRID.
WRN_UnusedLocal
, "a").WithArguments("a").WithLocation(4, 13).WithWarningAsError(True),
2996
Diagnostic(ERRID.
WRN_UnusedLocal
, "d").WithArguments("d").WithLocation(8, 13).WithWarningAsError(True))
3006
Diagnostic(ERRID.
WRN_UnusedLocal
, "a").WithArguments("a").WithLocation(4, 13).WithWarningAsError(True),
3008
Diagnostic(ERRID.
WRN_UnusedLocal
, "d").WithArguments("d").WithLocation(8, 13).WithWarningAsError(True))
3034
Diagnostic(ERRID.
WRN_UnusedLocal
, "a").WithArguments("a").WithLocation(5, 13))
3040
Diagnostic(ERRID.
WRN_UnusedLocal
, "a").WithArguments("a").WithLocation(5, 13).WithWarningAsError(True),
3051
Diagnostic(ERRID.
WRN_UnusedLocal
, "a").WithArguments("a").WithLocation(5, 13).WithWarningAsError(True),
3077
Diagnostic(ERRID.
WRN_UnusedLocal
, "d").WithArguments("d").WithLocation(8, 13))
3084
Diagnostic(ERRID.
WRN_UnusedLocal
, "d").WithArguments("d").WithLocation(8, 13).WithWarningAsError(True))
3095
Diagnostic(ERRID.
WRN_UnusedLocal
, "d").WithArguments("d").WithLocation(8, 13).WithWarningAsError(True))
3125
Diagnostic(ERRID.
WRN_UnusedLocal
, "f").WithArguments("f").WithLocation(10, 13),
3132
Diagnostic(ERRID.
WRN_UnusedLocal
, "f").WithArguments("f").WithLocation(10, 13).WithWarningAsError(True),
3143
Diagnostic(ERRID.
WRN_UnusedLocal
, "f").WithArguments("f").WithLocation(10, 13).WithWarningAsError(True),
3256
Diagnostic(ERRID.
WRN_UnusedLocal
, "a").WithArguments("a").WithLocation(5, 13),
3258
Diagnostic(ERRID.
WRN_UnusedLocal
, "d").WithArguments("d").WithLocation(9, 13))
3264
Diagnostic(ERRID.
WRN_UnusedLocal
, "a").WithArguments("a").WithLocation(5, 13).WithWarningAsError(True),
3266
Diagnostic(ERRID.
WRN_UnusedLocal
, "d").WithArguments("d").WithLocation(9, 13).WithWarningAsError(True))
3276
Diagnostic(ERRID.
WRN_UnusedLocal
, "a").WithArguments("a").WithLocation(5, 13).WithWarningAsError(True),
3278
Diagnostic(ERRID.
WRN_UnusedLocal
, "d").WithArguments("d").WithLocation(9, 13).WithWarningAsError(True))
3364
Diagnostic(ERRID.
WRN_UnusedLocal
, "a").WithArguments("a").WithLocation(4, 13))
3546
Diagnostic(ERRID.
WRN_UnusedLocal
, "a").WithArguments("a").WithLocation(4, 13))
3573
Diagnostic(ERRID.
WRN_UnusedLocal
, "d").WithArguments("d").WithLocation(8, 13))