220 references to WRN_UnreferencedLabel
Microsoft.CodeAnalysis.CSharp (4)
Errors\ErrorFacts.cs (2)
292
case ErrorCode.
WRN_UnreferencedLabel
:
750
or ErrorCode.
WRN_UnreferencedLabel
FlowAnalysis\ControlFlowPass.cs (1)
142
Diagnostics.Add(ErrorCode.
WRN_UnreferencedLabel
, label.GetFirstLocation());
Generated\ErrorFacts.Generated.cs (1)
17
case ErrorCode.
WRN_UnreferencedLabel
:
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (11)
CodeGen\GotoTest.cs (11)
231
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "Lab1"));
568
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "x").WithLocation(1, 1),
591
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "x").WithLocation(6, 1));
958
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "L0").WithLocation(3, 5),
961
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "L1").WithLocation(6, 5));
1024
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "L").WithLocation(5, 1),
1047
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "L").WithLocation(3, 1));
1209
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "L2").WithLocation(5, 1),
1212
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "EOF").WithLocation(6, 1));
1221
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "L2").WithLocation(5, 1),
1224
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "EOF").WithLocation(6, 1));
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (174)
FlowAnalysis\LocalFunctions.cs (1)
359
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "https").WithLocation(10, 5));
Semantics\OutVarTests.cs (88)
14612
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "a").WithLocation(14, 1)
17321
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "a").WithLocation(12, 1),
17324
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "b").WithLocation(14, 1),
17327
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "c").WithLocation(16, 1),
17333
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "a").WithLocation(21, 1),
17339
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "a").WithLocation(26, 1),
17345
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "a").WithLocation(33, 1),
17351
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "a").WithLocation(38, 1),
17360
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "a").WithLocation(59, 1),
17366
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "a").WithLocation(65, 1),
17372
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "a").WithLocation(73, 1),
17378
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "a").WithLocation(80, 1),
17381
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "a").WithLocation(85, 1)
17483
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "a").WithLocation(13, 1)
17578
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "a").WithLocation(11, 1),
17581
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "b").WithLocation(11, 4),
17584
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "c").WithLocation(11, 7)
17637
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "a").WithLocation(15, 1)
28840
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "a").WithLocation(2, 1),
28843
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "b").WithLocation(6, 1),
28846
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "c").WithLocation(8, 1),
28849
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "d").WithLocation(11, 1),
28890
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "a").WithLocation(2, 1),
28893
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "b").WithLocation(6, 1),
28899
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "c").WithLocation(8, 1),
28908
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "d").WithLocation(11, 1),
28991
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "a").WithLocation(2, 1),
28994
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "b").WithLocation(6, 1),
28997
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "c").WithLocation(8, 1),
29000
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "d").WithLocation(11, 1),
29041
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "a").WithLocation(2, 1),
29044
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "b").WithLocation(6, 1),
29050
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "c").WithLocation(8, 1),
29059
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "d").WithLocation(11, 1),
29124
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "a").WithLocation(3, 1),
29127
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "b").WithLocation(3, 3),
29130
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "c").WithLocation(3, 5)
29195
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "a").WithLocation(2, 1),
29198
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "c").WithLocation(6, 1),
29201
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "e").WithLocation(8, 1),
29204
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "g").WithLocation(11, 1),
29207
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "i").WithLocation(14, 1),
29253
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "a").WithLocation(2, 1),
29256
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "c").WithLocation(6, 1),
29262
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "e").WithLocation(8, 1),
29271
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "g").WithLocation(11, 1),
29277
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "i").WithLocation(14, 1),
29371
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "a").WithLocation(2, 1),
29374
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "c").WithLocation(6, 1),
29377
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "e").WithLocation(8, 1),
29380
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "g").WithLocation(11, 1),
29383
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "i").WithLocation(14, 1),
29429
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "a").WithLocation(2, 1),
29432
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "c").WithLocation(6, 1),
29438
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "e").WithLocation(8, 1),
29447
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "g").WithLocation(11, 1),
29453
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "i").WithLocation(14, 1),
29526
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "a").WithLocation(3, 1),
29529
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "b").WithLocation(3, 3),
29532
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "c").WithLocation(3, 5)
29575
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "a").WithLocation(3, 1),
29578
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "b").WithLocation(3, 3),
29581
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "c").WithLocation(3, 5)
29652
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "l1").WithLocation(1, 1),
29655
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "l2").WithLocation(5, 1),
29658
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "l3").WithLocation(7, 1),
29661
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "l4").WithLocation(10, 1),
29664
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "l5").WithLocation(13, 1),
29722
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "l1").WithLocation(1, 1),
29725
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "l2").WithLocation(5, 1),
29731
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "l3").WithLocation(7, 1),
29740
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "l4").WithLocation(10, 1),
29746
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "l5").WithLocation(13, 1),
29853
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "l1").WithLocation(1, 1),
29856
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "l2").WithLocation(5, 1),
29859
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "l3").WithLocation(7, 1),
29862
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "l4").WithLocation(10, 1),
29865
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "l5").WithLocation(13, 1),
29923
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "l1").WithLocation(1, 1),
29926
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "l2").WithLocation(5, 1),
29932
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "l3").WithLocation(7, 1),
29941
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "l4").WithLocation(10, 1),
29947
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "l5").WithLocation(13, 1),
30028
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "a").WithLocation(3, 1),
30031
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "b").WithLocation(3, 3),
30034
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "c").WithLocation(3, 5)
31838
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "label").WithLocation(2, 1)
31866
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "label").WithLocation(2, 1),
Semantics\PatternMatchingTests.cs (2)
3034
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "a").WithLocation(6, 1)
3081
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "a").WithLocation(15, 1)
Semantics\PatternMatchingTests_Global.cs (67)
3206
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "a").WithLocation(2, 1),
3209
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "b").WithLocation(6, 1),
3212
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "c").WithLocation(8, 1),
3215
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "d").WithLocation(11, 1),
3256
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "a").WithLocation(2, 1),
3259
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "b").WithLocation(6, 1),
3265
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "c").WithLocation(8, 1),
3274
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "d").WithLocation(11, 1),
3352
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "a").WithLocation(2, 1),
3355
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "b").WithLocation(6, 1),
3358
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "c").WithLocation(8, 1),
3361
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "d").WithLocation(11, 1),
3402
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "a").WithLocation(2, 1),
3405
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "b").WithLocation(6, 1),
3411
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "c").WithLocation(8, 1),
3420
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "d").WithLocation(11, 1),
3480
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "a").WithLocation(3, 1),
3483
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "b").WithLocation(3, 3),
3486
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "c").WithLocation(3, 5)
3546
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "a").WithLocation(2, 1),
3549
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "c").WithLocation(6, 1),
3552
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "e").WithLocation(8, 1),
3555
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "g").WithLocation(11, 1),
3558
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "i").WithLocation(14, 1),
3604
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "a").WithLocation(2, 1),
3607
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "c").WithLocation(6, 1),
3613
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "e").WithLocation(8, 1),
3622
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "g").WithLocation(11, 1),
3628
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "i").WithLocation(14, 1),
3717
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "a").WithLocation(2, 1),
3720
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "c").WithLocation(6, 1),
3723
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "e").WithLocation(8, 1),
3726
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "g").WithLocation(11, 1),
3729
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "i").WithLocation(14, 1),
3775
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "a").WithLocation(2, 1),
3778
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "c").WithLocation(6, 1),
3784
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "e").WithLocation(8, 1),
3793
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "g").WithLocation(11, 1),
3799
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "i").WithLocation(14, 1),
3863
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "a").WithLocation(3, 1),
3866
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "b").WithLocation(3, 3),
3869
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "c").WithLocation(3, 5)
3936
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "l1").WithLocation(1, 1),
3939
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "l2").WithLocation(5, 1),
3942
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "l3").WithLocation(7, 1),
3945
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "l4").WithLocation(10, 1),
3948
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "l5").WithLocation(13, 1),
4006
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "l1").WithLocation(1, 1),
4009
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "l2").WithLocation(5, 1),
4015
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "l3").WithLocation(7, 1),
4024
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "l4").WithLocation(10, 1),
4030
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "l5").WithLocation(13, 1),
4134
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "l1").WithLocation(1, 1),
4137
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "l2").WithLocation(5, 1),
4140
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "l3").WithLocation(7, 1),
4143
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "l4").WithLocation(10, 1),
4146
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "l5").WithLocation(13, 1),
4204
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "l1").WithLocation(1, 1),
4207
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "l2").WithLocation(5, 1),
4213
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "l3").WithLocation(7, 1),
4222
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "l4").WithLocation(10, 1),
4228
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "l5").WithLocation(13, 1),
4302
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "a").WithLocation(3, 1),
4305
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "b").WithLocation(3, 3),
4308
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "c").WithLocation(3, 5)
6022
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "label").WithLocation(2, 1)
6041
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "label").WithLocation(2, 1),
Semantics\PatternMatchingTests_NullableTypes.cs (3)
201
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "i1").WithLocation(16, 23),
290
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "i1").WithLocation(16, 25),
299
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "t1").WithLocation(18, 26),
Semantics\PatternMatchingTests_Scope.cs (12)
10526
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "a").WithLocation(12, 1),
10529
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "b").WithLocation(14, 1),
10532
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "c").WithLocation(16, 1),
10541
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "a").WithLocation(26, 1),
10547
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "a").WithLocation(33, 1),
10553
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "a").WithLocation(38, 1),
10562
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "a").WithLocation(59, 1),
10568
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "a").WithLocation(65, 1),
10574
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "a").WithLocation(73, 1),
10580
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "a").WithLocation(80, 1),
10583
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "a").WithLocation(85, 1)
10679
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "a").WithLocation(13, 1)
Semantics\PatternMatchingTests4.cs (1)
1516
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "x").WithLocation(9, 20)
Microsoft.CodeAnalysis.CSharp.IOperation.UnitTests (6)
IOperation\IOperationTests_IBranchOperation.cs (5)
35
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "label1").WithLocation(6, 1)
1128
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "trylabel").WithLocation(12, 1),
1131
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "catchlabel").WithLocation(19, 1),
1134
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "finallyLabel").WithLocation(26, 1)
1546
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "label").WithLocation(13, 1)
IOperation\IOperationTests_IUsingStatement.cs (1)
7939
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "x").WithLocation(5, 9),
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (22)
Semantics\BindingTests.cs (2)
1872
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "@int1"));
2071
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "label").WithLocation(9, 13),
Semantics\ForLoopErrorTests.cs (1)
149
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "outerLoop"));
Semantics\LocalFunctionTests.cs (2)
3559
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "A").WithLocation(11, 9)
4374
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "a").WithLocation(7, 1),
Semantics\SemanticErrorTests.cs (14)
5252
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "label1")
5323
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "Label"));
5346
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "Label"));
5375
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "Label1"),
5376
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "Label2"));
5395
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "L"));
5448
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "label1"),
5449
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "label3"),
5450
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "label4"),
5451
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "label5"));
5484
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "label2")
5512
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "innerLoop"));
19315
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "l1").WithLocation(9, 7));
24794
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "value").WithLocation(6, 41),
Semantics\TopLevelStatementsTests.cs (1)
1558
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "d").WithLocation(8, 1),
Semantics\UsingDeclarationTests.cs (2)
196
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "label1").WithLocation(7, 9),
199
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "label2").WithLocation(8, 9),
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (3)
Parsing\NullableParsingTests.cs (1)
831
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "t").WithLocation(1, 24));
Parsing\ParserErrorMessageTests.cs (1)
2462
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "MyLabel").WithLocation(6, 35));
Parsing\StatementAttributeParsingTests.cs (1)
234
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "bar").WithLocation(7, 9));