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)
14614
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "a").WithLocation(14, 1)
17323
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "a").WithLocation(12, 1),
17326
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "b").WithLocation(14, 1),
17329
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "c").WithLocation(16, 1),
17335
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "a").WithLocation(21, 1),
17341
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "a").WithLocation(26, 1),
17347
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "a").WithLocation(33, 1),
17353
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "a").WithLocation(38, 1),
17362
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "a").WithLocation(59, 1),
17368
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "a").WithLocation(65, 1),
17374
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "a").WithLocation(73, 1),
17380
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "a").WithLocation(80, 1),
17383
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "a").WithLocation(85, 1)
17485
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "a").WithLocation(13, 1)
17580
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "a").WithLocation(11, 1),
17583
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "b").WithLocation(11, 4),
17586
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "c").WithLocation(11, 7)
17639
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "a").WithLocation(15, 1)
28851
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "a").WithLocation(2, 1),
28854
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "b").WithLocation(6, 1),
28857
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "c").WithLocation(8, 1),
28860
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "d").WithLocation(11, 1),
28901
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "a").WithLocation(2, 1),
28904
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "b").WithLocation(6, 1),
28910
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "c").WithLocation(8, 1),
28919
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "d").WithLocation(11, 1),
29002
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "a").WithLocation(2, 1),
29005
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "b").WithLocation(6, 1),
29008
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "c").WithLocation(8, 1),
29011
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "d").WithLocation(11, 1),
29052
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "a").WithLocation(2, 1),
29055
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "b").WithLocation(6, 1),
29061
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "c").WithLocation(8, 1),
29070
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "d").WithLocation(11, 1),
29135
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "a").WithLocation(3, 1),
29138
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "b").WithLocation(3, 3),
29141
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "c").WithLocation(3, 5)
29206
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "a").WithLocation(2, 1),
29209
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "c").WithLocation(6, 1),
29212
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "e").WithLocation(8, 1),
29215
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "g").WithLocation(11, 1),
29218
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "i").WithLocation(14, 1),
29264
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "a").WithLocation(2, 1),
29267
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "c").WithLocation(6, 1),
29273
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "e").WithLocation(8, 1),
29282
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "g").WithLocation(11, 1),
29288
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "i").WithLocation(14, 1),
29382
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "a").WithLocation(2, 1),
29385
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "c").WithLocation(6, 1),
29388
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "e").WithLocation(8, 1),
29391
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "g").WithLocation(11, 1),
29394
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "i").WithLocation(14, 1),
29440
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "a").WithLocation(2, 1),
29443
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "c").WithLocation(6, 1),
29449
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "e").WithLocation(8, 1),
29458
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "g").WithLocation(11, 1),
29464
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "i").WithLocation(14, 1),
29537
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "a").WithLocation(3, 1),
29540
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "b").WithLocation(3, 3),
29543
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "c").WithLocation(3, 5)
29586
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "a").WithLocation(3, 1),
29589
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "b").WithLocation(3, 3),
29592
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "c").WithLocation(3, 5)
29663
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "l1").WithLocation(1, 1),
29666
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "l2").WithLocation(5, 1),
29669
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "l3").WithLocation(7, 1),
29672
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "l4").WithLocation(10, 1),
29675
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "l5").WithLocation(13, 1),
29733
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "l1").WithLocation(1, 1),
29736
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "l2").WithLocation(5, 1),
29742
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "l3").WithLocation(7, 1),
29751
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "l4").WithLocation(10, 1),
29757
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "l5").WithLocation(13, 1),
29864
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "l1").WithLocation(1, 1),
29867
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "l2").WithLocation(5, 1),
29870
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "l3").WithLocation(7, 1),
29873
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "l4").WithLocation(10, 1),
29876
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "l5").WithLocation(13, 1),
29934
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "l1").WithLocation(1, 1),
29937
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "l2").WithLocation(5, 1),
29943
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "l3").WithLocation(7, 1),
29952
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "l4").WithLocation(10, 1),
29958
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "l5").WithLocation(13, 1),
30039
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "a").WithLocation(3, 1),
30042
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "b").WithLocation(3, 3),
30045
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "c").WithLocation(3, 5)
31849
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "label").WithLocation(2, 1)
31877
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)
3254
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "A").WithLocation(11, 9)
4069
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "a").WithLocation(7, 1),
Semantics\SemanticErrorTests.cs (14)
5207
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "label1")
5278
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "Label"));
5301
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "Label"));
5330
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "Label1"),
5331
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "Label2"));
5350
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "L"));
5403
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "label1"),
5404
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "label3"),
5405
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "label4"),
5406
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "label5"));
5439
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "label2")
5467
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "innerLoop"));
19270
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "l1").WithLocation(9, 7));
24749
Diagnostic(ErrorCode.
WRN_UnreferencedLabel
, "value").WithLocation(6, 41),
Semantics\TopLevelStatementsTests.cs (1)
1514
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));