214 references to WRN_UnreferencedLabel
Microsoft.CodeAnalysis.CSharp (4)
Errors\ErrorFacts.cs (2)
279case ErrorCode.WRN_UnreferencedLabel: 689case ErrorCode.WRN_UnreferencedLabel:
FlowAnalysis\ControlFlowPass.cs (1)
143Diagnostics.Add(ErrorCode.WRN_UnreferencedLabel, label.Locations[0]);
Generated\ErrorFacts.Generated.cs (1)
17case ErrorCode.WRN_UnreferencedLabel:
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (9)
CodeGen\GotoTest.cs (9)
230Diagnostic(ErrorCode.WRN_UnreferencedLabel, "Lab1")); 848Diagnostic(ErrorCode.WRN_UnreferencedLabel, "L0").WithLocation(3, 5), 851Diagnostic(ErrorCode.WRN_UnreferencedLabel, "L1").WithLocation(6, 5)); 914Diagnostic(ErrorCode.WRN_UnreferencedLabel, "L").WithLocation(5, 1), 937Diagnostic(ErrorCode.WRN_UnreferencedLabel, "L").WithLocation(3, 1)); 1099Diagnostic(ErrorCode.WRN_UnreferencedLabel, "L2").WithLocation(5, 1), 1102Diagnostic(ErrorCode.WRN_UnreferencedLabel, "EOF").WithLocation(6, 1)); 1111Diagnostic(ErrorCode.WRN_UnreferencedLabel, "L2").WithLocation(5, 1), 1114Diagnostic(ErrorCode.WRN_UnreferencedLabel, "EOF").WithLocation(6, 1));
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (83)
FlowAnalysis\LocalFunctions.cs (1)
359Diagnostic(ErrorCode.WRN_UnreferencedLabel, "https").WithLocation(10, 5));
Semantics\PatternMatchingTests.cs (2)
3034Diagnostic(ErrorCode.WRN_UnreferencedLabel, "a").WithLocation(6, 1) 3081Diagnostic(ErrorCode.WRN_UnreferencedLabel, "a").WithLocation(15, 1)
Semantics\PatternMatchingTests_Global.cs (67)
3206Diagnostic(ErrorCode.WRN_UnreferencedLabel, "a").WithLocation(2, 1), 3209Diagnostic(ErrorCode.WRN_UnreferencedLabel, "b").WithLocation(6, 1), 3212Diagnostic(ErrorCode.WRN_UnreferencedLabel, "c").WithLocation(8, 1), 3215Diagnostic(ErrorCode.WRN_UnreferencedLabel, "d").WithLocation(11, 1), 3256Diagnostic(ErrorCode.WRN_UnreferencedLabel, "a").WithLocation(2, 1), 3259Diagnostic(ErrorCode.WRN_UnreferencedLabel, "b").WithLocation(6, 1), 3265Diagnostic(ErrorCode.WRN_UnreferencedLabel, "c").WithLocation(8, 1), 3274Diagnostic(ErrorCode.WRN_UnreferencedLabel, "d").WithLocation(11, 1), 3352Diagnostic(ErrorCode.WRN_UnreferencedLabel, "a").WithLocation(2, 1), 3355Diagnostic(ErrorCode.WRN_UnreferencedLabel, "b").WithLocation(6, 1), 3358Diagnostic(ErrorCode.WRN_UnreferencedLabel, "c").WithLocation(8, 1), 3361Diagnostic(ErrorCode.WRN_UnreferencedLabel, "d").WithLocation(11, 1), 3402Diagnostic(ErrorCode.WRN_UnreferencedLabel, "a").WithLocation(2, 1), 3405Diagnostic(ErrorCode.WRN_UnreferencedLabel, "b").WithLocation(6, 1), 3411Diagnostic(ErrorCode.WRN_UnreferencedLabel, "c").WithLocation(8, 1), 3420Diagnostic(ErrorCode.WRN_UnreferencedLabel, "d").WithLocation(11, 1), 3480Diagnostic(ErrorCode.WRN_UnreferencedLabel, "a").WithLocation(3, 1), 3483Diagnostic(ErrorCode.WRN_UnreferencedLabel, "b").WithLocation(3, 3), 3486Diagnostic(ErrorCode.WRN_UnreferencedLabel, "c").WithLocation(3, 5) 3546Diagnostic(ErrorCode.WRN_UnreferencedLabel, "a").WithLocation(2, 1), 3549Diagnostic(ErrorCode.WRN_UnreferencedLabel, "c").WithLocation(6, 1), 3552Diagnostic(ErrorCode.WRN_UnreferencedLabel, "e").WithLocation(8, 1), 3555Diagnostic(ErrorCode.WRN_UnreferencedLabel, "g").WithLocation(11, 1), 3558Diagnostic(ErrorCode.WRN_UnreferencedLabel, "i").WithLocation(14, 1), 3604Diagnostic(ErrorCode.WRN_UnreferencedLabel, "a").WithLocation(2, 1), 3607Diagnostic(ErrorCode.WRN_UnreferencedLabel, "c").WithLocation(6, 1), 3613Diagnostic(ErrorCode.WRN_UnreferencedLabel, "e").WithLocation(8, 1), 3622Diagnostic(ErrorCode.WRN_UnreferencedLabel, "g").WithLocation(11, 1), 3628Diagnostic(ErrorCode.WRN_UnreferencedLabel, "i").WithLocation(14, 1), 3717Diagnostic(ErrorCode.WRN_UnreferencedLabel, "a").WithLocation(2, 1), 3720Diagnostic(ErrorCode.WRN_UnreferencedLabel, "c").WithLocation(6, 1), 3723Diagnostic(ErrorCode.WRN_UnreferencedLabel, "e").WithLocation(8, 1), 3726Diagnostic(ErrorCode.WRN_UnreferencedLabel, "g").WithLocation(11, 1), 3729Diagnostic(ErrorCode.WRN_UnreferencedLabel, "i").WithLocation(14, 1), 3775Diagnostic(ErrorCode.WRN_UnreferencedLabel, "a").WithLocation(2, 1), 3778Diagnostic(ErrorCode.WRN_UnreferencedLabel, "c").WithLocation(6, 1), 3784Diagnostic(ErrorCode.WRN_UnreferencedLabel, "e").WithLocation(8, 1), 3793Diagnostic(ErrorCode.WRN_UnreferencedLabel, "g").WithLocation(11, 1), 3799Diagnostic(ErrorCode.WRN_UnreferencedLabel, "i").WithLocation(14, 1), 3863Diagnostic(ErrorCode.WRN_UnreferencedLabel, "a").WithLocation(3, 1), 3866Diagnostic(ErrorCode.WRN_UnreferencedLabel, "b").WithLocation(3, 3), 3869Diagnostic(ErrorCode.WRN_UnreferencedLabel, "c").WithLocation(3, 5) 3936Diagnostic(ErrorCode.WRN_UnreferencedLabel, "l1").WithLocation(1, 1), 3939Diagnostic(ErrorCode.WRN_UnreferencedLabel, "l2").WithLocation(5, 1), 3942Diagnostic(ErrorCode.WRN_UnreferencedLabel, "l3").WithLocation(7, 1), 3945Diagnostic(ErrorCode.WRN_UnreferencedLabel, "l4").WithLocation(10, 1), 3948Diagnostic(ErrorCode.WRN_UnreferencedLabel, "l5").WithLocation(13, 1), 4006Diagnostic(ErrorCode.WRN_UnreferencedLabel, "l1").WithLocation(1, 1), 4009Diagnostic(ErrorCode.WRN_UnreferencedLabel, "l2").WithLocation(5, 1), 4015Diagnostic(ErrorCode.WRN_UnreferencedLabel, "l3").WithLocation(7, 1), 4024Diagnostic(ErrorCode.WRN_UnreferencedLabel, "l4").WithLocation(10, 1), 4030Diagnostic(ErrorCode.WRN_UnreferencedLabel, "l5").WithLocation(13, 1), 4134Diagnostic(ErrorCode.WRN_UnreferencedLabel, "l1").WithLocation(1, 1), 4137Diagnostic(ErrorCode.WRN_UnreferencedLabel, "l2").WithLocation(5, 1), 4140Diagnostic(ErrorCode.WRN_UnreferencedLabel, "l3").WithLocation(7, 1), 4143Diagnostic(ErrorCode.WRN_UnreferencedLabel, "l4").WithLocation(10, 1), 4146Diagnostic(ErrorCode.WRN_UnreferencedLabel, "l5").WithLocation(13, 1), 4204Diagnostic(ErrorCode.WRN_UnreferencedLabel, "l1").WithLocation(1, 1), 4207Diagnostic(ErrorCode.WRN_UnreferencedLabel, "l2").WithLocation(5, 1), 4213Diagnostic(ErrorCode.WRN_UnreferencedLabel, "l3").WithLocation(7, 1), 4222Diagnostic(ErrorCode.WRN_UnreferencedLabel, "l4").WithLocation(10, 1), 4228Diagnostic(ErrorCode.WRN_UnreferencedLabel, "l5").WithLocation(13, 1), 4302Diagnostic(ErrorCode.WRN_UnreferencedLabel, "a").WithLocation(3, 1), 4305Diagnostic(ErrorCode.WRN_UnreferencedLabel, "b").WithLocation(3, 3), 4308Diagnostic(ErrorCode.WRN_UnreferencedLabel, "c").WithLocation(3, 5) 6022Diagnostic(ErrorCode.WRN_UnreferencedLabel, "label").WithLocation(2, 1) 6041Diagnostic(ErrorCode.WRN_UnreferencedLabel, "label").WithLocation(2, 1),
Semantics\PatternMatchingTests_Scope.cs (12)
10526Diagnostic(ErrorCode.WRN_UnreferencedLabel, "a").WithLocation(12, 1), 10529Diagnostic(ErrorCode.WRN_UnreferencedLabel, "b").WithLocation(14, 1), 10532Diagnostic(ErrorCode.WRN_UnreferencedLabel, "c").WithLocation(16, 1), 10541Diagnostic(ErrorCode.WRN_UnreferencedLabel, "a").WithLocation(26, 1), 10547Diagnostic(ErrorCode.WRN_UnreferencedLabel, "a").WithLocation(33, 1), 10553Diagnostic(ErrorCode.WRN_UnreferencedLabel, "a").WithLocation(38, 1), 10562Diagnostic(ErrorCode.WRN_UnreferencedLabel, "a").WithLocation(59, 1), 10568Diagnostic(ErrorCode.WRN_UnreferencedLabel, "a").WithLocation(65, 1), 10574Diagnostic(ErrorCode.WRN_UnreferencedLabel, "a").WithLocation(73, 1), 10580Diagnostic(ErrorCode.WRN_UnreferencedLabel, "a").WithLocation(80, 1), 10583Diagnostic(ErrorCode.WRN_UnreferencedLabel, "a").WithLocation(85, 1) 10679Diagnostic(ErrorCode.WRN_UnreferencedLabel, "a").WithLocation(13, 1)
Semantics\PatternMatchingTests4.cs (1)
1517Diagnostic(ErrorCode.WRN_UnreferencedLabel, "x").WithLocation(9, 20)
Microsoft.CodeAnalysis.CSharp.IOperation.UnitTests (5)
IOperation\IOperationTests_IBranchOperation.cs (5)
35Diagnostic(ErrorCode.WRN_UnreferencedLabel, "label1").WithLocation(6, 1) 1128Diagnostic(ErrorCode.WRN_UnreferencedLabel, "trylabel").WithLocation(12, 1), 1131Diagnostic(ErrorCode.WRN_UnreferencedLabel, "catchlabel").WithLocation(19, 1), 1134Diagnostic(ErrorCode.WRN_UnreferencedLabel, "finallyLabel").WithLocation(26, 1) 1546Diagnostic(ErrorCode.WRN_UnreferencedLabel, "label").WithLocation(13, 1)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (110)
Semantics\BindingTests.cs (2)
1839Diagnostic(ErrorCode.WRN_UnreferencedLabel, "@int1")); 2038Diagnostic(ErrorCode.WRN_UnreferencedLabel, "label").WithLocation(9, 13),
Semantics\ForLoopErrorTests.cs (1)
147Diagnostic(ErrorCode.WRN_UnreferencedLabel, "outerLoop"));
Semantics\LocalFunctionTests.cs (2)
3170Diagnostic(ErrorCode.WRN_UnreferencedLabel, "A").WithLocation(11, 9) 3985Diagnostic(ErrorCode.WRN_UnreferencedLabel, "a").WithLocation(7, 1),
Semantics\OutVarTests.cs (88)
14614Diagnostic(ErrorCode.WRN_UnreferencedLabel, "a").WithLocation(14, 1) 17323Diagnostic(ErrorCode.WRN_UnreferencedLabel, "a").WithLocation(12, 1), 17326Diagnostic(ErrorCode.WRN_UnreferencedLabel, "b").WithLocation(14, 1), 17329Diagnostic(ErrorCode.WRN_UnreferencedLabel, "c").WithLocation(16, 1), 17335Diagnostic(ErrorCode.WRN_UnreferencedLabel, "a").WithLocation(21, 1), 17341Diagnostic(ErrorCode.WRN_UnreferencedLabel, "a").WithLocation(26, 1), 17347Diagnostic(ErrorCode.WRN_UnreferencedLabel, "a").WithLocation(33, 1), 17353Diagnostic(ErrorCode.WRN_UnreferencedLabel, "a").WithLocation(38, 1), 17362Diagnostic(ErrorCode.WRN_UnreferencedLabel, "a").WithLocation(59, 1), 17368Diagnostic(ErrorCode.WRN_UnreferencedLabel, "a").WithLocation(65, 1), 17374Diagnostic(ErrorCode.WRN_UnreferencedLabel, "a").WithLocation(73, 1), 17380Diagnostic(ErrorCode.WRN_UnreferencedLabel, "a").WithLocation(80, 1), 17383Diagnostic(ErrorCode.WRN_UnreferencedLabel, "a").WithLocation(85, 1) 17485Diagnostic(ErrorCode.WRN_UnreferencedLabel, "a").WithLocation(13, 1) 17580Diagnostic(ErrorCode.WRN_UnreferencedLabel, "a").WithLocation(11, 1), 17583Diagnostic(ErrorCode.WRN_UnreferencedLabel, "b").WithLocation(11, 4), 17586Diagnostic(ErrorCode.WRN_UnreferencedLabel, "c").WithLocation(11, 7) 17639Diagnostic(ErrorCode.WRN_UnreferencedLabel, "a").WithLocation(15, 1) 28792Diagnostic(ErrorCode.WRN_UnreferencedLabel, "a").WithLocation(2, 1), 28795Diagnostic(ErrorCode.WRN_UnreferencedLabel, "b").WithLocation(6, 1), 28798Diagnostic(ErrorCode.WRN_UnreferencedLabel, "c").WithLocation(8, 1), 28801Diagnostic(ErrorCode.WRN_UnreferencedLabel, "d").WithLocation(11, 1), 28842Diagnostic(ErrorCode.WRN_UnreferencedLabel, "a").WithLocation(2, 1), 28845Diagnostic(ErrorCode.WRN_UnreferencedLabel, "b").WithLocation(6, 1), 28851Diagnostic(ErrorCode.WRN_UnreferencedLabel, "c").WithLocation(8, 1), 28860Diagnostic(ErrorCode.WRN_UnreferencedLabel, "d").WithLocation(11, 1), 28943Diagnostic(ErrorCode.WRN_UnreferencedLabel, "a").WithLocation(2, 1), 28946Diagnostic(ErrorCode.WRN_UnreferencedLabel, "b").WithLocation(6, 1), 28949Diagnostic(ErrorCode.WRN_UnreferencedLabel, "c").WithLocation(8, 1), 28952Diagnostic(ErrorCode.WRN_UnreferencedLabel, "d").WithLocation(11, 1), 28993Diagnostic(ErrorCode.WRN_UnreferencedLabel, "a").WithLocation(2, 1), 28996Diagnostic(ErrorCode.WRN_UnreferencedLabel, "b").WithLocation(6, 1), 29002Diagnostic(ErrorCode.WRN_UnreferencedLabel, "c").WithLocation(8, 1), 29011Diagnostic(ErrorCode.WRN_UnreferencedLabel, "d").WithLocation(11, 1), 29076Diagnostic(ErrorCode.WRN_UnreferencedLabel, "a").WithLocation(3, 1), 29079Diagnostic(ErrorCode.WRN_UnreferencedLabel, "b").WithLocation(3, 3), 29082Diagnostic(ErrorCode.WRN_UnreferencedLabel, "c").WithLocation(3, 5) 29147Diagnostic(ErrorCode.WRN_UnreferencedLabel, "a").WithLocation(2, 1), 29150Diagnostic(ErrorCode.WRN_UnreferencedLabel, "c").WithLocation(6, 1), 29153Diagnostic(ErrorCode.WRN_UnreferencedLabel, "e").WithLocation(8, 1), 29156Diagnostic(ErrorCode.WRN_UnreferencedLabel, "g").WithLocation(11, 1), 29159Diagnostic(ErrorCode.WRN_UnreferencedLabel, "i").WithLocation(14, 1), 29205Diagnostic(ErrorCode.WRN_UnreferencedLabel, "a").WithLocation(2, 1), 29208Diagnostic(ErrorCode.WRN_UnreferencedLabel, "c").WithLocation(6, 1), 29214Diagnostic(ErrorCode.WRN_UnreferencedLabel, "e").WithLocation(8, 1), 29223Diagnostic(ErrorCode.WRN_UnreferencedLabel, "g").WithLocation(11, 1), 29229Diagnostic(ErrorCode.WRN_UnreferencedLabel, "i").WithLocation(14, 1), 29323Diagnostic(ErrorCode.WRN_UnreferencedLabel, "a").WithLocation(2, 1), 29326Diagnostic(ErrorCode.WRN_UnreferencedLabel, "c").WithLocation(6, 1), 29329Diagnostic(ErrorCode.WRN_UnreferencedLabel, "e").WithLocation(8, 1), 29332Diagnostic(ErrorCode.WRN_UnreferencedLabel, "g").WithLocation(11, 1), 29335Diagnostic(ErrorCode.WRN_UnreferencedLabel, "i").WithLocation(14, 1), 29381Diagnostic(ErrorCode.WRN_UnreferencedLabel, "a").WithLocation(2, 1), 29384Diagnostic(ErrorCode.WRN_UnreferencedLabel, "c").WithLocation(6, 1), 29390Diagnostic(ErrorCode.WRN_UnreferencedLabel, "e").WithLocation(8, 1), 29399Diagnostic(ErrorCode.WRN_UnreferencedLabel, "g").WithLocation(11, 1), 29405Diagnostic(ErrorCode.WRN_UnreferencedLabel, "i").WithLocation(14, 1), 29478Diagnostic(ErrorCode.WRN_UnreferencedLabel, "a").WithLocation(3, 1), 29481Diagnostic(ErrorCode.WRN_UnreferencedLabel, "b").WithLocation(3, 3), 29484Diagnostic(ErrorCode.WRN_UnreferencedLabel, "c").WithLocation(3, 5) 29527Diagnostic(ErrorCode.WRN_UnreferencedLabel, "a").WithLocation(3, 1), 29530Diagnostic(ErrorCode.WRN_UnreferencedLabel, "b").WithLocation(3, 3), 29533Diagnostic(ErrorCode.WRN_UnreferencedLabel, "c").WithLocation(3, 5) 29604Diagnostic(ErrorCode.WRN_UnreferencedLabel, "l1").WithLocation(1, 1), 29607Diagnostic(ErrorCode.WRN_UnreferencedLabel, "l2").WithLocation(5, 1), 29610Diagnostic(ErrorCode.WRN_UnreferencedLabel, "l3").WithLocation(7, 1), 29613Diagnostic(ErrorCode.WRN_UnreferencedLabel, "l4").WithLocation(10, 1), 29616Diagnostic(ErrorCode.WRN_UnreferencedLabel, "l5").WithLocation(13, 1), 29674Diagnostic(ErrorCode.WRN_UnreferencedLabel, "l1").WithLocation(1, 1), 29677Diagnostic(ErrorCode.WRN_UnreferencedLabel, "l2").WithLocation(5, 1), 29683Diagnostic(ErrorCode.WRN_UnreferencedLabel, "l3").WithLocation(7, 1), 29692Diagnostic(ErrorCode.WRN_UnreferencedLabel, "l4").WithLocation(10, 1), 29698Diagnostic(ErrorCode.WRN_UnreferencedLabel, "l5").WithLocation(13, 1), 29805Diagnostic(ErrorCode.WRN_UnreferencedLabel, "l1").WithLocation(1, 1), 29808Diagnostic(ErrorCode.WRN_UnreferencedLabel, "l2").WithLocation(5, 1), 29811Diagnostic(ErrorCode.WRN_UnreferencedLabel, "l3").WithLocation(7, 1), 29814Diagnostic(ErrorCode.WRN_UnreferencedLabel, "l4").WithLocation(10, 1), 29817Diagnostic(ErrorCode.WRN_UnreferencedLabel, "l5").WithLocation(13, 1), 29875Diagnostic(ErrorCode.WRN_UnreferencedLabel, "l1").WithLocation(1, 1), 29878Diagnostic(ErrorCode.WRN_UnreferencedLabel, "l2").WithLocation(5, 1), 29884Diagnostic(ErrorCode.WRN_UnreferencedLabel, "l3").WithLocation(7, 1), 29893Diagnostic(ErrorCode.WRN_UnreferencedLabel, "l4").WithLocation(10, 1), 29899Diagnostic(ErrorCode.WRN_UnreferencedLabel, "l5").WithLocation(13, 1), 29980Diagnostic(ErrorCode.WRN_UnreferencedLabel, "a").WithLocation(3, 1), 29983Diagnostic(ErrorCode.WRN_UnreferencedLabel, "b").WithLocation(3, 3), 29986Diagnostic(ErrorCode.WRN_UnreferencedLabel, "c").WithLocation(3, 5) 31790Diagnostic(ErrorCode.WRN_UnreferencedLabel, "label").WithLocation(2, 1) 31818Diagnostic(ErrorCode.WRN_UnreferencedLabel, "label").WithLocation(2, 1),
Semantics\SemanticErrorTests.cs (14)
5209Diagnostic(ErrorCode.WRN_UnreferencedLabel, "label1") 5280Diagnostic(ErrorCode.WRN_UnreferencedLabel, "Label")); 5303Diagnostic(ErrorCode.WRN_UnreferencedLabel, "Label")); 5332Diagnostic(ErrorCode.WRN_UnreferencedLabel, "Label1"), 5333Diagnostic(ErrorCode.WRN_UnreferencedLabel, "Label2")); 5352Diagnostic(ErrorCode.WRN_UnreferencedLabel, "L")); 5405Diagnostic(ErrorCode.WRN_UnreferencedLabel, "label1"), 5406Diagnostic(ErrorCode.WRN_UnreferencedLabel, "label3"), 5407Diagnostic(ErrorCode.WRN_UnreferencedLabel, "label4"), 5408Diagnostic(ErrorCode.WRN_UnreferencedLabel, "label5")); 5441Diagnostic(ErrorCode.WRN_UnreferencedLabel, "label2") 5469Diagnostic(ErrorCode.WRN_UnreferencedLabel, "innerLoop")); 19046Diagnostic(ErrorCode.WRN_UnreferencedLabel, "l1").WithLocation(9, 7)); 24493Diagnostic(ErrorCode.WRN_UnreferencedLabel, "value").WithLocation(6, 41),
Semantics\TopLevelStatementsTests.cs (1)
1501Diagnostic(ErrorCode.WRN_UnreferencedLabel, "d").WithLocation(8, 1),
Semantics\UsingDeclarationTests.cs (2)
196Diagnostic(ErrorCode.WRN_UnreferencedLabel, "label1").WithLocation(7, 9), 199Diagnostic(ErrorCode.WRN_UnreferencedLabel, "label2").WithLocation(8, 9),
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (3)
Parsing\NullableParsingTests.cs (1)
830Diagnostic(ErrorCode.WRN_UnreferencedLabel, "t").WithLocation(1, 24));
Parsing\ParserErrorMessageTests.cs (1)
2462Diagnostic(ErrorCode.WRN_UnreferencedLabel, "MyLabel").WithLocation(6, 35));
Parsing\StatementAttributeParsingTests.cs (1)
233Diagnostic(ErrorCode.WRN_UnreferencedLabel, "bar").WithLocation(7, 9));