440 references to WRN_UnreferencedVarAssg
Microsoft.CodeAnalysis.CSharp (4)
Errors\ErrorFacts.cs (2)
255
case ErrorCode.
WRN_UnreferencedVarAssg
:
734
case ErrorCode.
WRN_UnreferencedVarAssg
:
FlowAnalysis\DefiniteAssignment.cs (1)
2163
Diagnostics.Add(assigned && _writtenVariables.Contains(symbol) ? ErrorCode.
WRN_UnreferencedVarAssg
: ErrorCode.WRN_UnreferencedVar, symbol.Locations.FirstOrNone(), symbol.Name);
Generated\ErrorFacts.Generated.cs (1)
23
case ErrorCode.
WRN_UnreferencedVarAssg
:
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (10)
QuickInfo\DiagnosticAnalyzerQuickInfoSourceTests.cs (10)
41
", GetFormattedErrorTitle(ErrorCode.
WRN_UnreferencedVarAssg
));
53
", GetFormattedErrorTitle(ErrorCode.
WRN_UnreferencedVarAssg
));
63
", GetFormattedErrorTitle(ErrorCode.
WRN_UnreferencedVarAssg
));
81
", GetFormattedErrorTitle(ErrorCode.
WRN_UnreferencedVarAssg
));
89
[InlineData("#pragma warning disable $$219.0", (int)ErrorCode.
WRN_UnreferencedVarAssg
)]
90
[InlineData("#pragma warning disable $$219.5", (int)ErrorCode.
WRN_UnreferencedVarAssg
)]
106
[InlineData("#pragma warning disable $$CS0219", (int)ErrorCode.
WRN_UnreferencedVarAssg
)]
107
[InlineData("#pragma warning disable CS0162, $$CS0219", (int)ErrorCode.
WRN_UnreferencedVarAssg
)]
108
[InlineData("#pragma warning disable CS0162, CS0219$$", (int)ErrorCode.
WRN_UnreferencedVarAssg
)]
110
[InlineData("#pragma warning $$disable CS0219, CS0162", (int)ErrorCode.
WRN_UnreferencedVarAssg
)]
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (41)
BreakingChanges.cs (5)
46
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "o2").WithArguments("o2")
739
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "a").WithArguments("a"));
1064
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "b1").WithArguments("b1"),
1067
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "b3").WithArguments("b3"));
1475
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "A6").WithArguments("A6"));
CodeGen\CodeGenDeconstructTests.cs (1)
9440
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "x").WithArguments("x").WithLocation(6, 17),
CodeGen\CodeGenTupleTest.cs (30)
2972
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "x").WithArguments("x").WithLocation(11, 20),
4468
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "x").WithArguments("x").WithLocation(6, 13)
6966
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "x1").WithArguments("x1").WithLocation(7, 25),
6969
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "x2").WithArguments("x2").WithLocation(10, 25),
6972
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "x3").WithArguments("x3").WithLocation(13, 29)
8031
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "x1").WithArguments("x1").WithLocation(7, 24),
8034
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "x2").WithArguments("x2").WithLocation(9, 28)
10421
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "t1").WithArguments("t1").WithLocation(8, 13)
10676
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "t2").WithArguments("t2").WithLocation(8, 13),
10685
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "v2").WithArguments("v2").WithLocation(18, 13)
10726
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "x").WithArguments("x").WithLocation(6, 13)
10954
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "x").WithArguments("x").WithLocation(6, 20),
19614
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "x1").WithArguments("x1").WithLocation(6, 22),
19617
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "x2").WithArguments("x2").WithLocation(7, 25)
24144
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "t1").WithArguments("t1").WithLocation(13, 30),
24147
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "t2").WithArguments("t2").WithLocation(14, 32),
24150
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "t3").WithArguments("t3").WithLocation(15, 40),
24153
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "t4").WithArguments("t4").WithLocation(19, 20),
24156
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "t5").WithArguments("t5").WithLocation(20, 20),
24159
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "t6").WithArguments("t6").WithLocation(22, 26),
24162
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "t7").WithArguments("t7").WithLocation(23, 26),
24165
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "t8").WithArguments("t8").WithLocation(24, 21),
24168
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "t9").WithArguments("t9").WithLocation(26, 20),
24171
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "t10").WithArguments("t10").WithLocation(27, 20),
24174
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "t11").WithArguments("t11").WithLocation(28, 20),
24177
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "t12").WithArguments("t12").WithLocation(30, 16),
24180
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "t13").WithArguments("t13").WithLocation(31, 21),
24183
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "t14").WithArguments("t14").WithLocation(32, 21)
25912
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "t1").WithArguments("t1").WithLocation(6, 20),
25915
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "t2").WithArguments("t2").WithLocation(7, 13)
Emit\CompilationEmitTests.cs (1)
4660
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "b").WithArguments("b"));
Emit\EditAndContinue\EditAndContinueTests.cs (1)
10995
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "y").WithArguments("y"),
Emit\EmitErrorTests.cs (2)
84
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "y").WithArguments("y"));
305
warnOpts.Add(MessageProvider.Instance.GetIdForErrorCode((int)ErrorCode.
WRN_UnreferencedVarAssg
), ReportDiagnostic.Suppress);
PrivateProtected.cs (1)
367
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "x").WithArguments("x").WithLocation(11, 21),
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (72)
Attributes\AttributeTests_IsByRefLike.cs (6)
857
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "v1").WithArguments("v1").WithLocation(7, 17),
860
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "v2").WithArguments("v2").WithLocation(8, 17)
923
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "v1").WithArguments("v1").WithLocation(7, 17),
926
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "v2").WithArguments("v2").WithLocation(10, 17)
941
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "v1").WithArguments("v1").WithLocation(7, 17),
944
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "v2").WithArguments("v2").WithLocation(10, 17)
Diagnostics\DiagnosticAnalyzerTests.cs (4)
2674
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "x").WithArguments("x").WithLocation(1, 35));
3680
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "local1").WithArguments("local1").WithLocation(6, 13));
3696
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "local1").WithArguments("local1").WithLocation(6, 13),
3699
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "local2").WithArguments("local2").WithLocation(11, 13));
Diagnostics\GetDiagnosticsTests.cs (2)
1009
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "x1").WithArguments("x1").WithLocation(6, 13));
1017
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "x1").WithArguments("x1").WithLocation(6, 13));
Diagnostics\OperationAnalyzerTests.cs (1)
1826
.VerifyDiagnostics(Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "a").WithArguments("a").WithLocation(6, 16))
FlowAnalysis\FlowDiagnosticTests.cs (10)
43
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "i1").WithArguments("i1"),
46
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "i3").WithArguments("i3"),
49
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "i4").WithArguments("i4"),
52
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "i6").WithArguments("i6"),
55
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "i7").WithArguments("i7"),
58
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "i8").WithArguments("i8"),
61
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "i9").WithArguments("i9"));
907
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "M").WithArguments("M")
938
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "a").WithArguments("a").WithLocation(7, 11),
1989
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "s1").WithArguments("s1"));
FlowAnalysis\FlowTests.cs (8)
5584
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "Unused").WithArguments("Unused").WithLocation(8, 19));
5607
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "Unused").WithArguments("Unused").WithLocation(8, 19));
5634
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "Unused").WithArguments("Unused").WithLocation(12, 19));
5661
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "Unused").WithArguments("Unused").WithLocation(12, 19));
5692
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "N6").WithArguments("N6").WithLocation(16, 19));
5746
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "Z").WithArguments("Z").WithLocation(9, 26));
5777
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "N6").WithArguments("N6").WithLocation(16, 19));
5807
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "Z").WithArguments("Z").WithLocation(9, 26));
Semantics\PatternMatchingTests.cs (1)
76
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "i2").WithArguments("i2").WithLocation(8, 13),
Semantics\PatternMatchingTests_Global.cs (7)
419
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "x6").WithArguments("x6").WithLocation(21, 5),
6937
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "y12").WithArguments("y12").WithLocation(74, 9)
7035
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "y12").WithArguments("y12").WithLocation(74, 9)
7254
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "y12").WithArguments("y12").WithLocation(52, 9)
7358
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "y12").WithArguments("y12").WithLocation(52, 9)
8476
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "y12").WithArguments("y12").WithLocation(52, 9)
8572
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "y12").WithArguments("y12").WithLocation(52, 9),
Semantics\PatternMatchingTests_Scope.cs (29)
193
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "x5").WithArguments("x5").WithLocation(39, 13),
575
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "x5").WithArguments("x5").WithLocation(39, 13),
845
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "x5").WithArguments("x5").WithLocation(39, 13),
1152
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "y12").WithArguments("y12").WithLocation(110, 17)
5493
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "y12").WithArguments("y12").WithLocation(87, 17),
5700
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "y12").WithArguments("y12").WithLocation(87, 17),
5907
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "y12").WithArguments("y12").WithLocation(87, 17),
7078
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "y12").WithArguments("y12").WithLocation(87, 17),
7397
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "y12").WithArguments("y12").WithLocation(97, 17),
7715
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "y12").WithArguments("y12").WithLocation(109, 17),
7944
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "y12").WithArguments("y12").WithLocation(109, 17),
8191
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "y12").WithArguments("y12").WithLocation(109, 17),
8434
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "y12").WithArguments("y12").WithLocation(109, 17),
8666
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "y12").WithArguments("y12").WithLocation(109, 17),
8886
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "x2").WithArguments("x2").WithLocation(20, 18),
8892
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "x3").WithArguments("x3").WithLocation(28, 18),
8904
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "x5").WithArguments("x5").WithLocation(44, 19),
8910
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "x6").WithArguments("x6").WithLocation(52, 19),
9294
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "y12").WithArguments("y12").WithLocation(87, 17),
9506
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "y12").WithArguments("y12").WithLocation(87, 17),
9792
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "y12").WithArguments("y12").WithLocation(87, 17),
10066
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "x5").WithArguments("x5").WithLocation(41, 13),
10556
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "x5").WithArguments("x5").WithLocation(39, 13),
12434
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "y12").WithArguments("y12").WithLocation(109, 17),
12572
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "x7").WithArguments("x7").WithLocation(20, 19),
12777
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "y12").WithArguments("y12").WithLocation(87, 17),
13172
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "y12").WithArguments("y12").WithLocation(87, 17),
13899
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "x4").WithArguments("x4").WithLocation(29, 13),
13917
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "x5").WithArguments("x5").WithLocation(37, 13),
Semantics\PatternMatchingTests4.cs (4)
1404
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "_").WithArguments("_").WithLocation(6, 19)
1433
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "_").WithArguments("_").WithLocation(6, 19)
1684
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "_").WithArguments("_").WithLocation(6, 19)
1715
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "_").WithArguments("_").WithLocation(6, 19),
Microsoft.CodeAnalysis.CSharp.IOperation.UnitTests (63)
IOperation\IOperationTests_IConversionExpression.cs (23)
215
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "e1").WithArguments("e1").WithLocation(5, 25)
290
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "e1").WithArguments("e1").WithLocation(5, 25)
443
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "s1").WithArguments("s1").WithLocation(6, 26)
479
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "s1").WithArguments("s1").WithLocation(10, 23)
545
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "i1").WithArguments("i1").WithLocation(8, 24)
580
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "i1").WithArguments("i1").WithLocation(8, 24)
614
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "i1").WithArguments("i1").WithLocation(8, 26)
645
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "i1").WithArguments("i1").WithLocation(6, 24)
2126
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "t").WithArguments("t").WithLocation(11, 21)
2608
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "s1").WithArguments("s1").WithLocation(7, 31)
2644
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "s1").WithArguments("s1").WithLocation(7, 31)
2808
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "i1").WithArguments("i1").WithLocation(6, 13)
2856
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "i1").WithArguments("i1").WithLocation(6, 13)
3256
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "o").WithArguments("o").WithLocation(10, 34)
3405
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "i").WithArguments("i").WithLocation(6, 23)
3440
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "i").WithArguments("i").WithLocation(6, 24)
3469
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "i").WithArguments("i").WithLocation(6, 13)
3506
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "i").WithArguments("i").WithLocation(6, 23)
3577
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "e1").WithArguments("e1").WithLocation(6, 22)
3615
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "i").WithArguments("i").WithLocation(6, 23)
3658
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "e2").WithArguments("e2").WithLocation(6, 22)
3707
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "e2").WithArguments("e2").WithLocation(6, 22)
5040
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "o").WithArguments("o").WithLocation(10, 34)
IOperation\IOperationTests_IForEachLoopStatement.cs (1)
1323
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "i").WithArguments("i").WithLocation(6, 13)
IOperation\IOperationTests_IIfStatement.cs (6)
53
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "condition").WithArguments("condition").WithLocation(6, 14)
109
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "condition").WithArguments("condition").WithLocation(6, 14)
156
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "condition").WithArguments("condition").WithLocation(6, 14)
1341
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "a").WithArguments("a").WithLocation(8, 13)
1606
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "condition").WithArguments("condition").WithLocation(6, 14)
1681
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "condition").WithArguments("condition").WithLocation(6, 14)
IOperation\IOperationTests_INameOfOperation.cs (2)
35
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "test").WithArguments("test").WithLocation(6, 16)
82
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "test").WithArguments("test").WithLocation(6, 16)
IOperation\IOperationTests_IParameterReferenceExpression.cs (1)
44
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "tuple").WithArguments("tuple").WithLocation(6, 13)
IOperation\IOperationTests_IPatternSwitchCase.cs (1)
587
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "y").WithArguments("y").WithLocation(7, 14)
IOperation\IOperationTests_IThrowOperation.cs (1)
170
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "x").WithArguments("x").WithLocation(6, 13)
IOperation\IOperationTests_ITupleExpression.cs (3)
1360
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "t").WithArguments("t").WithLocation(6, 20)
1440
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "t").WithArguments("t").WithLocation(6, 13)
1788
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "t").WithArguments("t").WithLocation(6, 20)
IOperation\IOperationTests_IVariableDeclaration.cs (22)
80
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "i1").WithArguments("i1").WithLocation(6, 23)
189
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "i1").WithArguments("i1").WithLocation(6, 23),
192
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "i2").WithArguments("i2").WithLocation(6, 31)
233
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "i2").WithArguments("i2").WithLocation(6, 30)
555
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "x").WithArguments("x").WithLocation(6, 23)
988
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "z").WithArguments("z").WithLocation(6, 34),
1038
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "z").WithArguments("z").WithLocation(6, 34),
1091
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "z").WithArguments("z").WithLocation(6, 38),
1144
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "z").WithArguments("z").WithLocation(6, 38),
1316
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "y").WithArguments("y").WithLocation(6, 13),
1379
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "y").WithArguments("y").WithLocation(6, 13),
1815
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "y").WithArguments("y").WithLocation(6, 13),
2336
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "y").WithArguments("y").WithLocation(6, 13),
2397
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "y").WithArguments("y").WithLocation(6, 13),
2456
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "y").WithArguments("y").WithLocation(6, 13),
2535
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "j").WithArguments("j").WithLocation(6, 35)
2865
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "y").WithArguments("y").WithLocation(6, 13),
2905
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "i1").WithArguments("i1").WithLocation(6, 29)
2945
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "i1").WithArguments("i1").WithLocation(9, 29),
2948
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "i2").WithArguments("i2").WithLocation(9, 37)
3269
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "i1").WithArguments("i1").WithLocation(7, 29)
3309
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "i2").WithArguments("i2").WithLocation(7, 37)
IOperation\IOperationTests_TryCatch.cs (3)
558
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "i").WithArguments("i").WithLocation(10, 17)
613
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "i").WithArguments("i").WithLocation(13, 17)
756
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "i").WithArguments("i").WithLocation(11, 17)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (153)
Semantics\BindingAsyncTests.cs (1)
3221
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "tr").WithArguments("tr").WithLocation(9, 13));
Semantics\BindingTests.cs (2)
2011
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "o").WithArguments("o").WithLocation(7, 39)
2041
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "c").WithArguments("c").WithLocation(6, 14));
Semantics\ColorColorTests.cs (3)
978
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "var").WithArguments("var"),
1413
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "E").WithArguments("E"));
1907
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "z").WithArguments("z").WithLocation(12, 13)
Semantics\ConstantTests.cs (7)
1785
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "s").WithArguments("s").WithLocation(7, 17),
1788
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "intConversion").WithArguments("intConversion").WithLocation(20, 13),
1791
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "uintConversion").WithArguments("uintConversion").WithLocation(21, 14),
1794
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "longConversion").WithArguments("longConversion").WithLocation(22, 14),
1797
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "ulongConversion").WithArguments("ulongConversion").WithLocation(23, 15));
3292
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "i").WithArguments("i").WithLocation(6, 36),
3355
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "i").WithArguments("i").WithLocation(2, 28)
Semantics\DeconstructionTests.cs (4)
3122
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "x").WithArguments("x").WithLocation(8, 13),
3125
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "y").WithArguments("y").WithLocation(8, 20)
3219
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "x").WithArguments("x").WithLocation(8, 13),
3222
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "y").WithArguments("y").WithLocation(8, 20)
Semantics\DelegateTypeTests.cs (1)
15560
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "d").WithArguments("d").WithLocation(1, 15));
Semantics\ImplicitObjectCreationTests.cs (8)
100
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "v2").WithArguments("v2").WithLocation(11, 11),
106
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "v3").WithArguments("v3").WithLocation(12, 12),
620
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "x0").WithArguments("x0").WithLocation(6, 13),
623
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "x1").WithArguments("x1").WithLocation(7, 13)
667
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "x0").WithArguments("x0").WithLocation(7, 30),
670
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "x2").WithArguments("x2").WithLocation(9, 13)
2542
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "y").WithArguments("y").WithLocation(7, 19)
2889
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "j").WithArguments("j").WithLocation(7, 13)
Semantics\InterpolationTests.cs (1)
17264
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "i").WithArguments("i").WithLocation(1, 5),
Semantics\LambdaTests.cs (3)
661
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "message").WithArguments("message").WithLocation(8, 22),
7718
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "s").WithArguments("s").WithLocation(6, 26),
8080
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "x").WithArguments("x").WithLocation(7, 13));
Semantics\LocalFunctionTests.cs (2)
2256
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "t").WithArguments("t").WithLocation(23, 23));
2451
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "local").WithArguments("local").WithLocation(16, 13));
Semantics\MethodBodyModelTests.cs (2)
571
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "x").WithArguments("x")
644
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "C").WithArguments("C")
Semantics\NameCollisionTests.cs (4)
793
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "name6").WithArguments("name6").WithLocation(19, 32)
1343
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "name1").WithArguments("name1").WithLocation(17, 21),
1349
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "name1").WithArguments("name1").WithLocation(22, 17),
1352
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "name1").WithArguments("name1").WithLocation(27, 17)
Semantics\NameOfTests.cs (1)
867
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "a").WithArguments("a").WithLocation(9, 11)
Semantics\NullableReferenceTypesTests.cs (8)
1152
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "y2").WithArguments("y2").WithLocation(7, 16),
4133
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "x").WithArguments("x").WithLocation(6, 17)
4143
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "x").WithArguments("x").WithLocation(6, 17)
4448
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "x").WithArguments("x").WithLocation(6, 16),
8121
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "y").WithArguments("y").WithLocation(8, 16),
34125
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "s").WithArguments("s").WithLocation(8, 16),
80080
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "t").WithArguments("t").WithLocation(12, 17),
111068
#pragma warning disable {(int)ErrorCode.
WRN_UnreferencedVarAssg
}
Semantics\OutVarTests.cs (41)
1794
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "x1").WithArguments("x1").WithLocation(6, 13)
3855
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "y12").WithArguments("y12").WithLocation(97, 17),
4907
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "x5").WithArguments("x5").WithLocation(39, 13),
5903
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "y12").WithArguments("y12").WithLocation(87, 17),
6321
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "y12").WithArguments("y12").WithLocation(109, 17),
6556
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "y12").WithArguments("y12").WithLocation(109, 17),
6809
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "y12").WithArguments("y12").WithLocation(109, 17),
7058
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "y12").WithArguments("y12").WithLocation(109, 17),
7296
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "y12").WithArguments("y12").WithLocation(109, 17),
7522
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "x2").WithArguments("x2").WithLocation(20, 18),
7528
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "x3").WithArguments("x3").WithLocation(28, 18),
7540
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "x5").WithArguments("x5").WithLocation(44, 19),
7546
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "x6").WithArguments("x6").WithLocation(52, 19),
8378
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "y12").WithArguments("y12").WithLocation(87, 17),
8656
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "y12").WithArguments("y12").WithLocation(101, 17)
10714
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "y12").WithArguments("y12").WithLocation(87, 17),
13189
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "x5").WithArguments("x5").WithLocation(39, 13),
15110
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "x5").WithArguments("x5").WithLocation(39, 13),
15524
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "y12").WithArguments("y12").WithLocation(87, 17),
15737
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "y12").WithArguments("y12").WithLocation(87, 17),
15950
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "y12").WithArguments("y12").WithLocation(87, 17),
16393
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "y12").WithArguments("y12").WithLocation(87, 17),
16950
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "x5").WithArguments("x5").WithLocation(41, 13),
17356
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "x5").WithArguments("x5").WithLocation(39, 13),
17740
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "x2").WithArguments("x2").WithLocation(7, 13)
19641
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "x").WithArguments("x").WithLocation(9, 13),
20720
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "a").WithArguments("a").WithLocation(6, 25),
21591
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "y12").WithArguments("y12").WithLocation(109, 17),
21735
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "x7").WithArguments("x7").WithLocation(20, 19),
21946
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "y12").WithArguments("y12").WithLocation(87, 17),
22359
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "y12").WithArguments("y12").WithLocation(87, 17),
23607
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "y12").WithArguments("y12").WithLocation(74, 9)
23705
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "y12").WithArguments("y12").WithLocation(74, 9)
23945
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "y12").WithArguments("y12").WithLocation(52, 9)
24049
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "y12").WithArguments("y12").WithLocation(52, 9)
25227
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "y12").WithArguments("y12").WithLocation(52, 9)
25323
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "y12").WithArguments("y12").WithLocation(52, 9),
25864
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "x6").WithArguments("x6").WithLocation(21, 5),
34195
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "x1").WithArguments("x1").WithLocation(6, 13),
34514
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "a").WithArguments("a").WithLocation(12, 53),
34532
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "a").WithArguments("a").WithLocation(21, 53)
Semantics\OverloadResolutionTests.cs (1)
3238
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "E").WithArguments("E").WithLocation(22, 11));
Semantics\RefFieldTests.cs (11)
12636
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "s4").WithArguments("s4").WithLocation(4, 15),
12650
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "s4").WithArguments("s4").WithLocation(4, 15)
12691
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "s4").WithArguments("s4").WithLocation(4, 24),
12705
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "s4").WithArguments("s4").WithLocation(4, 24)
12840
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "scoped").WithArguments("scoped").WithLocation(1, 6));
12864
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "scoped").WithArguments("scoped").WithLocation(1, 11)
12934
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "r1").WithArguments("r1").WithLocation(6, 20)
12998
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "r1").WithArguments("r1").WithLocation(6, 25)
20354
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "x").WithArguments("x").WithLocation(4, 5),
20357
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "y").WithArguments("y").WithLocation(5, 5),
20705
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "x").WithArguments("x").WithLocation(2, 5),
Semantics\SemanticAnalyzerTests.cs (3)
146
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "y").WithArguments("y").WithLocation(7, 16));
934
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "q").WithArguments("q").WithLocation(6, 16),
1246
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "b").WithArguments("b"));
Semantics\SemanticErrorTests.cs (26)
1710
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "x").WithArguments("x"));
2801
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "d").WithArguments("d").WithLocation(3, 3)
2937
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "p").WithArguments("p")
2945
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "p").WithArguments("p").WithLocation(14, 13)
3704
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "i").WithArguments("i").WithLocation(9, 14)
5153
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "i").WithArguments("i")
6472
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "aStruct").WithArguments("aStruct").WithLocation(15, 16),
6482
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "aStruct").WithArguments("aStruct"),
8591
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "myS").WithArguments("myS"));
9182
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "s").WithArguments("s").WithLocation(5, 21));
10477
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "t2").WithArguments("t2"),
10480
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "t6").WithArguments("t6"),
11673
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "d1").WithArguments("d1").WithLocation(7, 17),
11676
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "f1").WithArguments("f1").WithLocation(8, 15));
12165
new ErrorDescription { Code = (int)ErrorCode.
WRN_UnreferencedVarAssg
, Line = 6, Column = 13, IsWarning = true },
12166
new ErrorDescription { Code = (int)ErrorCode.
WRN_UnreferencedVarAssg
, Line = 6, Column = 20, IsWarning = true }});
12805
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "j").WithArguments("j"));
16992
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "x").WithArguments("x")
19366
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "a").WithArguments("a")
19382
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "x").WithArguments("x").WithLocation(6, 13));
19398
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "x").WithArguments("x").WithLocation(6, 14));
19418
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "y").WithArguments("y").WithLocation(6, 12),
19419
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "s").WithArguments("s").WithLocation(7, 16)
19442
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "x").WithArguments("x").WithLocation(11, 13)
19462
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "i").WithArguments("i").WithLocation(6, 18)
22622
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "d").WithArguments("d"));
Semantics\SpanStackSafetyTests.cs (4)
1016
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "local1").WithArguments("local1").WithLocation(13, 19),
1022
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "local2").WithArguments("local2").WithLocation(14, 13)
1033
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "local1").WithArguments("local1").WithLocation(13, 19),
1039
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "local2").WithArguments("local2").WithLocation(14, 13)
Semantics\TargetTypedDefaultTests.cs (5)
35
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "x").WithArguments("x").WithLocation(6, 13),
1459
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "o").WithArguments("o").WithLocation(20, 13),
1462
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "p").WithArguments("p").WithLocation(21, 13),
1562
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "o").WithArguments("o").WithLocation(20, 13),
1565
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "p").WithArguments("p").WithLocation(21, 13),
Semantics\TopLevelStatementsTests.cs (11)
441
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "i").WithArguments("i").WithLocation(2, 5),
462
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "i").WithArguments("i").WithLocation(2, 5),
785
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "a").WithArguments("a").WithLocation(2, 8),
791
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "a").WithArguments("a").WithLocation(3, 8)
978
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "x").WithArguments("x").WithLocation(4, 5)
1081
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "await").WithArguments("await").WithLocation(3, 8),
1444
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "x").WithArguments("x").WithLocation(2, 8),
1463
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "x").WithArguments("x").WithLocation(2, 8),
1492
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "a").WithArguments("a").WithLocation(3, 8),
8821
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "i").WithArguments("i").WithLocation(2, 5),
9649
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "x").WithArguments("x").WithLocation(6, 5)
Semantics\UnsafeTests.cs (2)
7645
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "s").WithArguments("s"));
8980
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "c").WithArguments("c"));
Semantics\Utf8StringsLiteralsTests.cs (2)
2517
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "x1").WithArguments("x1").WithLocation(9, 13),
2520
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "x3").WithArguments("x3").WithLocation(10, 28)
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (40)
BadSymbolReference.cs (25)
297
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "x1").WithArguments("x1").WithLocation(9, 16),
300
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "x2").WithArguments("x2").WithLocation(15, 16),
303
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "x3").WithArguments("x3").WithLocation(21, 31),
312
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "x4").WithArguments("x4").WithLocation(53, 18),
315
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "x5").WithArguments("x5").WithLocation(65, 20),
321
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "x6").WithArguments("x6").WithLocation(145, 17),
493
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "x1").WithArguments("x1").WithLocation(9, 16),
496
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "x2").WithArguments("x2").WithLocation(15, 16),
499
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "x3").WithArguments("x3").WithLocation(21, 31),
508
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "x4").WithArguments("x4").WithLocation(53, 18),
511
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "x5").WithArguments("x5").WithLocation(65, 20),
517
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "x6").WithArguments("x6").WithLocation(145, 17),
609
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "x1").WithArguments("x1").WithLocation(9, 16),
612
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "x2").WithArguments("x2").WithLocation(15, 16),
615
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "x3").WithArguments("x3").WithLocation(21, 31),
618
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "x4").WithArguments("x4").WithLocation(53, 18),
621
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "x5").WithArguments("x5").WithLocation(65, 20),
624
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "x6").WithArguments("x6").WithLocation(145, 17),
690
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "x1").WithArguments("x1").WithLocation(9, 16),
693
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "x2").WithArguments("x2").WithLocation(15, 16),
696
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "x3").WithArguments("x3").WithLocation(21, 31),
699
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "x4").WithArguments("x4").WithLocation(53, 18),
702
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "x5").WithArguments("x5").WithLocation(65, 20),
705
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "x6").WithArguments("x6").WithLocation(145, 17),
730
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "x1").WithArguments("x1")
Compilation\GetSemanticInfoTests.cs (2)
4133
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "x").WithArguments("x").WithLocation(8, 13)
4184
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "x").WithArguments("x").WithLocation(8, 13)
Compilation\SemanticModelAPITests.cs (1)
1284
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "c").WithArguments("c"));
Symbols\FunctionPointerTypeSymbolTests.cs (1)
1137
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "a").WithArguments("a").WithLocation(6, 13),
Symbols\Source\EnumTests.cs (1)
632
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "s").WithArguments("s"));
Symbols\Source\ExternAliasTests.cs (1)
248
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "d").WithArguments("d")
Symbols\Source\NullablePublicAPITests.cs (2)
1747
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "o").WithArguments("o").WithLocation(9, 16));
1761
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "o").WithArguments("o").WithLocation(9, 16),
Symbols\SymbolErrorTests.cs (7)
13341
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "i").WithArguments("i").WithLocation(10, 14),
13344
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "c").WithArguments("c").WithLocation(11, 14)
16369
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "s1").WithArguments("s1"),
16372
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "s3").WithArguments("s3"),
16375
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "s4").WithArguments("s4"),
16378
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "s5").WithArguments("s5"));
17772
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "x").WithArguments("x"));
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (57)
Diagnostics\DiagnosticTest.cs (49)
579
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "j").WithArguments("j"));
587
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "j").WithArguments("j"));
597
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "j").WithArguments("j"));
606
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "j").WithArguments("j"));
690
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "y").WithArguments("y"));
701
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "y").WithArguments("y"));
710
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "y").WithArguments("y"));
743
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "y").WithArguments("y"),
754
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "y").WithArguments("y"),
763
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "y").WithArguments("y"),
799
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "y").WithArguments("y"),
810
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "y").WithArguments("y"),
819
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "y").WithArguments("y"),
860
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "y").WithArguments("y"));
871
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "y").WithArguments("y"));
880
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "y").WithArguments("y"));
918
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "y").WithArguments("y"));
929
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "y").WithArguments("y"));
938
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "y").WithArguments("y"));
974
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "y").WithArguments("y").WithLocation(8, 13),
988
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "y").WithArguments("y").WithLocation(8, 13),
1000
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "y").WithArguments("y").WithLocation(8, 13),
1041
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "y").WithArguments("y").WithLocation(8, 13),
1058
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "y").WithArguments("y").WithLocation(8, 13),
1073
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "y").WithArguments("y").WithLocation(8, 13),
1115
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "y").WithArguments("y").WithLocation(8, 13),
1129
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "y").WithArguments("y").WithLocation(8, 13),
1141
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "y").WithArguments("y").WithLocation(8, 13),
1444
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "y").WithArguments("y"),
1461
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "y").WithArguments("y"),
1475
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "y").WithArguments("y"),
1511
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "y").WithArguments("y"),
1525
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "y").WithArguments("y"),
1561
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "y").WithArguments("y"),
1578
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "y").WithArguments("y"),
1617
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "y").WithArguments("y"),
1631
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "y").WithArguments("y"),
1664
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "y").WithArguments("y"),
1675
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "y").WithArguments("y"),
1737
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "y").WithArguments("y"));
1748
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "y").WithArguments("y"));
1755
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "y").WithArguments("y"));
1786
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "y").WithArguments("y"));
1800
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "y").WithArguments("y"));
1810
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "y").WithArguments("y"));
1850
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "y").WithArguments("y").WithLocation(15, 13));
2040
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "y").WithArguments("y").WithLocation(8, 13),
2586
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "y").WithArguments("y").WithLocation(6, 13),
2589
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "z").WithArguments("z").WithLocation(7, 13)
Parsing\FileModifierParsingTests.cs (2)
3234
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "file").WithArguments("file").WithLocation(1, 6)
3298
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "file").WithArguments("file").WithLocation(3, 10)
Parsing\ParserErrorMessageTests.cs (2)
1241
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "i").WithArguments("i").WithLocation(6, 13));
3337
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "message").WithArguments("message").WithLocation(8, 22),
Parsing\StatementAttributeParsingTests.cs (4)
6605
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "i").WithArguments("i").WithLocation(6, 16));
6850
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "i").WithArguments("i").WithLocation(6, 22));
7022
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "i").WithArguments("i").WithLocation(6, 27));
7116
Diagnostic(ErrorCode.
WRN_UnreferencedVarAssg
, "i").WithArguments("i").WithLocation(6, 23));