246 references to WRN_UnreachableCode
Microsoft.CodeAnalysis.CSharp (4)
Errors\ErrorFacts.cs (2)
278case ErrorCode.WRN_UnreachableCode: 687case ErrorCode.WRN_UnreachableCode:
FlowAnalysis\ControlFlowPass.cs (1)
269Diagnostics.Add(ErrorCode.WRN_UnreachableCode, new SourceLocation(firstToken));
Generated\ErrorFacts.Generated.cs (1)
16case ErrorCode.WRN_UnreachableCode:
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (3)
QuickInfo\DiagnosticAnalyzerQuickInfoSourceTests.cs (3)
104[InlineData("#pragma warning disable $$CS0162", (int)ErrorCode.WRN_UnreachableCode)] 105[InlineData("#pragma warning disable $$CS0162, CS0219", (int)ErrorCode.WRN_UnreachableCode)] 109[InlineData("#pragma warning $$disable CS0162, CS0219", (int)ErrorCode.WRN_UnreachableCode)]
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (19)
CodeGen\CodeGenAsyncIteratorTests.cs (2)
829Diagnostic(ErrorCode.WRN_UnreachableCode, "await").WithLocation(7, 9) 1695Diagnostic(ErrorCode.WRN_UnreachableCode, "await").WithLocation(7, 9)
CodeGen\ForLoopsTests.cs (6)
1249VerifyDiagnostics(Diagnostic(ErrorCode.WRN_UnreachableCode, "System")); 1267c.VerifyDiagnostics(Diagnostic(ErrorCode.WRN_UnreachableCode, "System")); 1363Diagnostic(ErrorCode.WRN_UnreachableCode, "goto"), 1364Diagnostic(ErrorCode.WRN_UnreachableCode, "i") 1416VerifyDiagnostics(Diagnostic(ErrorCode.WRN_UnreachableCode, "j")); 1452VerifyDiagnostics(Diagnostic(ErrorCode.WRN_UnreachableCode, "i"));
CodeGen\GotoTest.cs (3)
227Diagnostic(ErrorCode.WRN_UnreachableCode, "Lab1"), 320c.VerifyDiagnostics(Diagnostic(ErrorCode.WRN_UnreachableCode, "i")); 360c.VerifyDiagnostics(Diagnostic(ErrorCode.WRN_UnreachableCode, "string"));
CodeGen\SwitchTests.cs (7)
2745Diagnostic(ErrorCode.WRN_UnreachableCode, "return")); 7523Diagnostic(ErrorCode.WRN_UnreachableCode, "break"), 7526Diagnostic(ErrorCode.WRN_UnreachableCode, "break")); 7627Diagnostic(ErrorCode.WRN_UnreachableCode, "ret")); 7676Diagnostic(ErrorCode.WRN_UnreachableCode, "ret").WithLocation(11, 17) 7726Diagnostic(ErrorCode.WRN_UnreachableCode, "return").WithLocation(19, 5)); 7765Diagnostic(ErrorCode.WRN_UnreachableCode, "ret").WithLocation(11, 9)
Emit\DynamicAnalysis\DynamicInstrumentationTests.cs (1)
474verifier.VerifyDiagnostics(Diagnostic(ErrorCode.WRN_UnreachableCode, "Console").WithLocation(16, 9));
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (86)
FlowAnalysis\FlowDiagnosticTests.cs (2)
612Diagnostic(ErrorCode.WRN_UnreachableCode, "Action"), 813Diagnostic(ErrorCode.WRN_UnreachableCode, "System"),
FlowAnalysis\FlowTests.cs (42)
162Diagnostic(ErrorCode.WRN_UnreachableCode, "return").WithLocation(40, 17), 168Diagnostic(ErrorCode.WRN_UnreachableCode, "return").WithLocation(51, 17)); 173Diagnostic(ErrorCode.WRN_UnreachableCode, "return").WithLocation(40, 17), 179Diagnostic(ErrorCode.WRN_UnreachableCode, "return").WithLocation(51, 17)); 220Diagnostic(ErrorCode.WRN_UnreachableCode, "F"), 223Diagnostic(ErrorCode.WRN_UnreachableCode, "F"), 226Diagnostic(ErrorCode.WRN_UnreachableCode, "F"), 350Diagnostic(ErrorCode.WRN_UnreachableCode, "F"), 353Diagnostic(ErrorCode.WRN_UnreachableCode, "F"), 356Diagnostic(ErrorCode.WRN_UnreachableCode, "No"), 359Diagnostic(ErrorCode.WRN_UnreachableCode, "No"), 362Diagnostic(ErrorCode.WRN_UnreachableCode, "F"), 582Diagnostic(ErrorCode.WRN_UnreachableCode, "F").WithLocation(121, 86), 668Diagnostic(ErrorCode.WRN_UnreachableCode, "F"), 671Diagnostic(ErrorCode.WRN_UnreachableCode, "F"), 704Diagnostic(ErrorCode.WRN_UnreachableCode, "F"), 707Diagnostic(ErrorCode.WRN_UnreachableCode, "F"), 710Diagnostic(ErrorCode.WRN_UnreachableCode, "G"), 713Diagnostic(ErrorCode.WRN_UnreachableCode, "G"), 716Diagnostic(ErrorCode.WRN_UnreachableCode, "G"), 719Diagnostic(ErrorCode.WRN_UnreachableCode, "break"), 722Diagnostic(ErrorCode.WRN_UnreachableCode, "F"), 725Diagnostic(ErrorCode.WRN_UnreachableCode, "F"), 798Diagnostic(ErrorCode.WRN_UnreachableCode, "F"), 819Diagnostic(ErrorCode.WRN_UnreachableCode, "F"), 827Diagnostic(ErrorCode.WRN_UnreachableCode, "F"), 934Diagnostic(ErrorCode.WRN_UnreachableCode, "F"), 937Diagnostic(ErrorCode.WRN_UnreachableCode, "G"), 940Diagnostic(ErrorCode.WRN_UnreachableCode, "F"), 943Diagnostic(ErrorCode.WRN_UnreachableCode, "F"), 994Diagnostic(ErrorCode.WRN_UnreachableCode, "F"), 1020Diagnostic(ErrorCode.WRN_UnreachableCode, "F"), 1046Diagnostic(ErrorCode.WRN_UnreachableCode, "F"), 1098Diagnostic(ErrorCode.WRN_UnreachableCode, "return"), 1101Diagnostic(ErrorCode.WRN_UnreachableCode, "return"), 1104Diagnostic(ErrorCode.WRN_UnreachableCode, "F"), 1107Diagnostic(ErrorCode.WRN_UnreachableCode, "return"), 1110Diagnostic(ErrorCode.WRN_UnreachableCode, "L"), 1611Diagnostic(ErrorCode.WRN_UnreachableCode, "(").WithLocation(78, 9) 1666Diagnostic(ErrorCode.WRN_UnreachableCode, "(").WithLocation(78, 9) 5131Diagnostic(ErrorCode.WRN_UnreachableCode, "System"), 5157Diagnostic(ErrorCode.WRN_UnreachableCode, "System"),
FlowAnalysis\LocalFunctions.cs (2)
248Diagnostic(ErrorCode.WRN_UnreachableCode, "x").WithLocation(10, 7)); 476Diagnostic(ErrorCode.WRN_UnreachableCode, "y").WithLocation(24, 13),
Semantics\PatternMatchingTests_Global.cs (10)
1009Diagnostic(ErrorCode.WRN_UnreachableCode, "H").WithLocation(3, 1), 1053Diagnostic(ErrorCode.WRN_UnreachableCode, "H").WithLocation(3, 1), 1141Diagnostic(ErrorCode.WRN_UnreachableCode, "H").WithLocation(3, 1), 1185Diagnostic(ErrorCode.WRN_UnreachableCode, "H").WithLocation(3, 1), 1315Diagnostic(ErrorCode.WRN_UnreachableCode, "H").WithLocation(3, 1), 1356Diagnostic(ErrorCode.WRN_UnreachableCode, "H").WithLocation(3, 1), 1440Diagnostic(ErrorCode.WRN_UnreachableCode, "H").WithLocation(3, 1), 1482Diagnostic(ErrorCode.WRN_UnreachableCode, "H").WithLocation(3, 1), 6934Diagnostic(ErrorCode.WRN_UnreachableCode, "for").WithLocation(11, 1), 7032Diagnostic(ErrorCode.WRN_UnreachableCode, "for").WithLocation(11, 1),
Semantics\PatternMatchingTests_Scope.cs (17)
557Diagnostic(ErrorCode.WRN_UnreachableCode, "return").WithLocation(14, 13), 572Diagnostic(ErrorCode.WRN_UnreachableCode, "var").WithLocation(39, 9), 584Diagnostic(ErrorCode.WRN_UnreachableCode, "Dummy").WithLocation(86, 9) 842Diagnostic(ErrorCode.WRN_UnreachableCode, "var").WithLocation(39, 9), 854Diagnostic(ErrorCode.WRN_UnreachableCode, "Dummy").WithLocation(86, 9) 1412Diagnostic(ErrorCode.WRN_UnreachableCode, "x1").WithLocation(12, 27), 1424Diagnostic(ErrorCode.WRN_UnreachableCode, "var").WithLocation(17, 27), 1470Diagnostic(ErrorCode.WRN_UnreachableCode, "x1").WithLocation(12, 27), 1482Diagnostic(ErrorCode.WRN_UnreachableCode, "var").WithLocation(17, 27), 7703Diagnostic(ErrorCode.WRN_UnreachableCode, "System").WithLocation(65, 9), 8173Diagnostic(ErrorCode.WRN_UnreachableCode, "System").WithLocation(65, 9), 8182Diagnostic(ErrorCode.WRN_UnreachableCode, "Dummy").WithLocation(71, 14), 8422Diagnostic(ErrorCode.WRN_UnreachableCode, "System").WithLocation(65, 9), 8654Diagnostic(ErrorCode.WRN_UnreachableCode, "System").WithLocation(65, 9), 11544Diagnostic(ErrorCode.WRN_UnreachableCode, "System").WithLocation(17, 17)); 11607Diagnostic(ErrorCode.WRN_UnreachableCode, "System").WithLocation(19, 21)); 12422Diagnostic(ErrorCode.WRN_UnreachableCode, "System").WithLocation(65, 9),
Semantics\PatternMatchingTests2.cs (3)
2526Diagnostic(ErrorCode.WRN_UnreachableCode, "break").WithLocation(7, 23), 2529Diagnostic(ErrorCode.WRN_UnreachableCode, "break").WithLocation(8, 23), 2532Diagnostic(ErrorCode.WRN_UnreachableCode, "break").WithLocation(10, 23)
Semantics\PatternSwitchTests.cs (10)
46Diagnostic(ErrorCode.WRN_UnreachableCode, "break").WithLocation(10, 17) 102Diagnostic(ErrorCode.WRN_UnreachableCode, "break").WithLocation(8, 17) 537Diagnostic(ErrorCode.WRN_UnreachableCode, "break").WithLocation(13, 17) 560Diagnostic(ErrorCode.WRN_UnreachableCode, "break").WithLocation(8, 17) 583Diagnostic(ErrorCode.WRN_UnreachableCode, "break").WithLocation(8, 17) 606Diagnostic(ErrorCode.WRN_UnreachableCode, "break").WithLocation(8, 17) 629Diagnostic(ErrorCode.WRN_UnreachableCode, "break").WithLocation(8, 17) 697Diagnostic(ErrorCode.WRN_UnreachableCode, "break").WithLocation(8, 17) 3111Diagnostic(ErrorCode.WRN_UnreachableCode, "break").WithLocation(19, 17) 3143Diagnostic(ErrorCode.WRN_UnreachableCode, "break").WithLocation(13, 17)
Microsoft.CodeAnalysis.CSharp.IOperation.UnitTests (30)
IOperation\IOperationTests_IBranchOperation.cs (1)
1125Diagnostic(ErrorCode.WRN_UnreachableCode, "x").WithLocation(32, 9),
IOperation\IOperationTests_IIfStatement.cs (3)
106Diagnostic(ErrorCode.WRN_UnreachableCode, "condition").WithLocation(13, 13), 1470Diagnostic(ErrorCode.WRN_UnreachableCode, "B").WithLocation(11, 13) 1678Diagnostic(ErrorCode.WRN_UnreachableCode, "condition").WithLocation(13, 13),
IOperation\IOperationTests_IReturnStatement.cs (6)
223Diagnostic(ErrorCode.WRN_UnreachableCode, "a").WithLocation(7, 9) 268Diagnostic(ErrorCode.WRN_UnreachableCode, "a").WithLocation(7, 9) 638Diagnostic(ErrorCode.WRN_UnreachableCode, "return").WithLocation(7, 9) 681Diagnostic(ErrorCode.WRN_UnreachableCode, "return").WithLocation(7, 9) 1220Diagnostic(ErrorCode.WRN_UnreachableCode, "a").WithLocation(7, 9) 1607Diagnostic(ErrorCode.WRN_UnreachableCode, "yield").WithLocation(7, 9)
IOperation\IOperationTests_IThrowOperation.cs (5)
76Diagnostic(ErrorCode.WRN_UnreachableCode, "x").WithLocation(8, 9) 167Diagnostic(ErrorCode.WRN_UnreachableCode, "x").WithLocation(8, 9), 755Diagnostic(ErrorCode.WRN_UnreachableCode, "u").WithLocation(14, 13) 1346Diagnostic(ErrorCode.WRN_UnreachableCode, "x").WithLocation(14, 13) 1427Diagnostic(ErrorCode.WRN_UnreachableCode, "x").WithLocation(14, 13)
IOperation\IOperationTests_IUsingStatement.cs (2)
6647Diagnostic(ErrorCode.WRN_UnreachableCode, "int").WithLocation(12, 9) 6836Diagnostic(ErrorCode.WRN_UnreachableCode, "int").WithLocation(12, 9),
IOperation\IOperationTests_TryCatch.cs (13)
4112Diagnostic(ErrorCode.WRN_UnreachableCode, "return").WithLocation(9, 24) 4360Diagnostic(ErrorCode.WRN_UnreachableCode, "return").WithLocation(8, 24) 6847Diagnostic(ErrorCode.WRN_UnreachableCode, "goto").WithLocation(11, 24), 6850Diagnostic(ErrorCode.WRN_UnreachableCode, "label1").WithLocation(13, 1) 6964Diagnostic(ErrorCode.WRN_UnreachableCode, "goto").WithLocation(18, 28), 6967Diagnostic(ErrorCode.WRN_UnreachableCode, "label1").WithLocation(20, 5), 6970Diagnostic(ErrorCode.WRN_UnreachableCode, "b").WithLocation(23, 13) 7174Diagnostic(ErrorCode.WRN_UnreachableCode, "x").WithLocation(17, 13) 7277Diagnostic(ErrorCode.WRN_UnreachableCode, "x").WithLocation(17, 13) 7381Diagnostic(ErrorCode.WRN_UnreachableCode, "x").WithLocation(17, 13) 7584Diagnostic(ErrorCode.WRN_UnreachableCode, "x").WithLocation(17, 13) 7684Diagnostic(ErrorCode.WRN_UnreachableCode, "x").WithLocation(17, 13) 7791Diagnostic(ErrorCode.WRN_UnreachableCode, "x").WithLocation(17, 13)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (97)
Semantics\BindingAsyncTests.cs (4)
1861Diagnostic(ErrorCode.WRN_UnreachableCode, "Goo"), 1870Diagnostic(ErrorCode.WRN_UnreachableCode, "return"), 1916Diagnostic(ErrorCode.WRN_UnreachableCode, "Goo"), 1922Diagnostic(ErrorCode.WRN_UnreachableCode, "Goo"),
Semantics\ForLoopErrorTests.cs (1)
146Diagnostic(ErrorCode.WRN_UnreachableCode, "j"),
Semantics\ImplicitObjectCreationTests.cs (4)
2599Diagnostic(ErrorCode.WRN_UnreachableCode, "break").WithLocation(10, 17) 2985Diagnostic(ErrorCode.WRN_UnreachableCode, "System").WithLocation(8, 13), 2988Diagnostic(ErrorCode.WRN_UnreachableCode, "System").WithLocation(13, 13), 2991Diagnostic(ErrorCode.WRN_UnreachableCode, "System").WithLocation(18, 13));
Semantics\LambdaTests.cs (2)
211Diagnostic(ErrorCode.WRN_UnreachableCode, "return").WithLocation(56, 42), 229Diagnostic(ErrorCode.WRN_UnreachableCode, "return").WithLocation(62, 44),
Semantics\LocalFunctionTests.cs (4)
3223Diagnostic(ErrorCode.WRN_UnreachableCode, "int").WithLocation(9, 9), 3257Diagnostic(ErrorCode.WRN_UnreachableCode, "int").WithLocation(9, 9), 3291Diagnostic(ErrorCode.WRN_UnreachableCode, "int").WithLocation(9, 9), 3906Diagnostic(ErrorCode.WRN_UnreachableCode, "int").WithLocation(13, 9),
Semantics\LockTests.cs (1)
409Diagnostic(ErrorCode.WRN_UnreachableCode, "ToString").WithLocation(9, 37)
Semantics\NullableReferenceTypesTests.cs (8)
20725Diagnostic(ErrorCode.WRN_UnreachableCode, "return").WithLocation(16, 9) 25986Diagnostic(ErrorCode.WRN_UnreachableCode, "return").WithLocation(20, 17) 26594Diagnostic(ErrorCode.WRN_UnreachableCode, "return").WithLocation(18, 17) 40811Diagnostic(ErrorCode.WRN_UnreachableCode, "y").WithLocation(11, 13) 73163Diagnostic(ErrorCode.WRN_UnreachableCode, "s1").WithLocation(8, 13), 73166Diagnostic(ErrorCode.WRN_UnreachableCode, "s1").WithLocation(11, 13), 73169Diagnostic(ErrorCode.WRN_UnreachableCode, "s1").WithLocation(16, 13), 73172Diagnostic(ErrorCode.WRN_UnreachableCode, "s1").WithLocation(21, 13)
Semantics\OutVarTests.cs (27)
6309Diagnostic(ErrorCode.WRN_UnreachableCode, "System").WithLocation(65, 9), 6791Diagnostic(ErrorCode.WRN_UnreachableCode, "System").WithLocation(65, 9), 6800Diagnostic(ErrorCode.WRN_UnreachableCode, "Dummy").WithLocation(71, 14), 7046Diagnostic(ErrorCode.WRN_UnreachableCode, "System").WithLocation(65, 9), 7284Diagnostic(ErrorCode.WRN_UnreachableCode, "System").WithLocation(65, 9), 9055Diagnostic(ErrorCode.WRN_UnreachableCode, "x1").WithLocation(12, 27), 9067Diagnostic(ErrorCode.WRN_UnreachableCode, "var").WithLocation(17, 27), 9113Diagnostic(ErrorCode.WRN_UnreachableCode, "x1").WithLocation(12, 27), 9125Diagnostic(ErrorCode.WRN_UnreachableCode, "var").WithLocation(17, 27), 13171Diagnostic(ErrorCode.WRN_UnreachableCode, "return").WithLocation(14, 13), 13186Diagnostic(ErrorCode.WRN_UnreachableCode, "var").WithLocation(39, 9), 13198Diagnostic(ErrorCode.WRN_UnreachableCode, "Dummy").WithLocation(86, 9) 14668Diagnostic(ErrorCode.WRN_UnreachableCode, "System").WithLocation(15, 17) 14727Diagnostic(ErrorCode.WRN_UnreachableCode, "System").WithLocation(17, 21) 15107Diagnostic(ErrorCode.WRN_UnreachableCode, "var").WithLocation(39, 9), 15119Diagnostic(ErrorCode.WRN_UnreachableCode, "Dummy").WithLocation(86, 9) 21579Diagnostic(ErrorCode.WRN_UnreachableCode, "System").WithLocation(65, 9), 23604Diagnostic(ErrorCode.WRN_UnreachableCode, "for").WithLocation(11, 1), 23702Diagnostic(ErrorCode.WRN_UnreachableCode, "for").WithLocation(11, 1), 26485Diagnostic(ErrorCode.WRN_UnreachableCode, "H").WithLocation(3, 1), 26529Diagnostic(ErrorCode.WRN_UnreachableCode, "H").WithLocation(3, 1), 26629Diagnostic(ErrorCode.WRN_UnreachableCode, "H").WithLocation(3, 1), 26673Diagnostic(ErrorCode.WRN_UnreachableCode, "H").WithLocation(3, 1), 26820Diagnostic(ErrorCode.WRN_UnreachableCode, "H").WithLocation(3, 1), 26861Diagnostic(ErrorCode.WRN_UnreachableCode, "H").WithLocation(3, 1), 26950Diagnostic(ErrorCode.WRN_UnreachableCode, "H").WithLocation(3, 1), 26992Diagnostic(ErrorCode.WRN_UnreachableCode, "H").WithLocation(3, 1),
Semantics\RecordStructTests.cs (1)
7047Diagnostic(ErrorCode.WRN_UnreachableCode, "Y").WithLocation(12, 34),
Semantics\SemanticErrorTests.cs (20)
5331Diagnostic(ErrorCode.WRN_UnreachableCode, "Label2"), 5402Diagnostic(ErrorCode.WRN_UnreachableCode, "if"), 5403Diagnostic(ErrorCode.WRN_UnreachableCode, "label4"), 5404Diagnostic(ErrorCode.WRN_UnreachableCode, "label5"), 5435Diagnostic(ErrorCode.WRN_UnreachableCode, "return"), 5798Diagnostic(ErrorCode.WRN_UnreachableCode, "Console").WithLocation(13, 13) 5831Diagnostic(ErrorCode.WRN_UnreachableCode, "Console").WithLocation(12, 13) 15112Diagnostic(ErrorCode.WRN_UnreachableCode, "yield") 18877Diagnostic(ErrorCode.WRN_UnreachableCode, "int"), 18878Diagnostic(ErrorCode.WRN_UnreachableCode, "return")); 18909Diagnostic(ErrorCode.WRN_UnreachableCode, "for"), 18912Diagnostic(ErrorCode.WRN_UnreachableCode, "L2") 18940Diagnostic(ErrorCode.WRN_UnreachableCode, "return"), 18941Diagnostic(ErrorCode.WRN_UnreachableCode, "return"), 18942Diagnostic(ErrorCode.WRN_UnreachableCode, "return")); 18985Diagnostic(ErrorCode.WRN_UnreachableCode, "F"), 18986Diagnostic(ErrorCode.WRN_UnreachableCode, "System"), 18987Diagnostic(ErrorCode.WRN_UnreachableCode, "System")); 19011VerifyDiagnostics(Diagnostic(ErrorCode.WRN_UnreachableCode, "System")); 19028VerifyDiagnostics(Diagnostic(ErrorCode.WRN_UnreachableCode, @"Console"));
Semantics\SwitchTests.cs (11)
402Diagnostic(ErrorCode.WRN_UnreachableCode, "goto").WithLocation(10, 17) 410Diagnostic(ErrorCode.WRN_UnreachableCode, "goto").WithLocation(10, 17) 2401Diagnostic(ErrorCode.WRN_UnreachableCode, "Console").WithLocation(7, 9) 2427Diagnostic(ErrorCode.WRN_UnreachableCode, "Console").WithLocation(7, 9) 2616Diagnostic(ErrorCode.WRN_UnreachableCode, "goo").WithLocation(10, 17), 2619Diagnostic(ErrorCode.WRN_UnreachableCode, "goo").WithLocation(13, 17), 2626Diagnostic(ErrorCode.WRN_UnreachableCode, "goo").WithLocation(10, 17), 2629Diagnostic(ErrorCode.WRN_UnreachableCode, "goo").WithLocation(13, 17), 2915Diagnostic(ErrorCode.WRN_UnreachableCode, "break").WithLocation(10, 17) 2920Diagnostic(ErrorCode.WRN_UnreachableCode, "break").WithLocation(10, 17) 2950Diagnostic(ErrorCode.WRN_UnreachableCode, "break").WithLocation(14, 17));
Semantics\TargetTypedDefaultTests.cs (7)
1984Diagnostic(ErrorCode.WRN_UnreachableCode, "System").WithLocation(17, 13) 2014Diagnostic(ErrorCode.WRN_UnreachableCode, "System").WithLocation(12, 13) 2060Diagnostic(ErrorCode.WRN_UnreachableCode, "System").WithLocation(28, 13) 2148Diagnostic(ErrorCode.WRN_UnreachableCode, "System").WithLocation(8, 13), 2151Diagnostic(ErrorCode.WRN_UnreachableCode, "System").WithLocation(13, 13), 2154Diagnostic(ErrorCode.WRN_UnreachableCode, "System").WithLocation(18, 13) 2181Diagnostic(ErrorCode.WRN_UnreachableCode, "System").WithLocation(12, 13)
Semantics\TopLevelStatementsTests.cs (2)
7986Diagnostic(ErrorCode.WRN_UnreachableCode, "System").WithLocation(4, 1) 8005Diagnostic(ErrorCode.WRN_UnreachableCode, "System").WithLocation(4, 1)
Semantics\UsingDeclarationTests.cs (5)
58Diagnostic(ErrorCode.WRN_UnreachableCode, "using").WithLocation(8, 9) 87Diagnostic(ErrorCode.WRN_UnreachableCode, "using").WithLocation(10, 9) 115Diagnostic(ErrorCode.WRN_UnreachableCode, "using").WithLocation(8, 9) 145Diagnostic(ErrorCode.WRN_UnreachableCode, "using").WithLocation(8, 9), 338Diagnostic(ErrorCode.WRN_UnreachableCode, "using").WithLocation(9, 13)
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (3)
Compilation\CompilationAPITests.cs (3)
3270Diagnostic(ErrorCode.WRN_UnreachableCode, "System").WithLocation(6, 1)); 3282Diagnostic(ErrorCode.WRN_UnreachableCode, "System").WithLocation(6, 1)); 3367Diagnostic(ErrorCode.WRN_UnreachableCode, "42").WithLocation(3, 1));
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (4)
Diagnostics\DiagnosticTest.cs (1)
2105Diagnostic(ErrorCode.WRN_UnreachableCode, "return")
Parsing\PatternParsingTests.cs (1)
165Diagnostic(ErrorCode.WRN_UnreachableCode, "(").WithLocation(14, 9)
Parsing\RawInterpolatedStringLiteralCompilingTests.cs (1)
230Diagnostic(ErrorCode.WRN_UnreachableCode, "break").WithLocation(8, 17));
Parsing\RawStringLiteralCompilingTests.cs (1)
158Diagnostic(ErrorCode.WRN_UnreachableCode, "break").WithLocation(8, 17));