262 references to WRN_UnreachableCode
Microsoft.CodeAnalysis.CSharp (4)
Errors\ErrorFacts.cs (2)
291case ErrorCode.WRN_UnreachableCode: 748or ErrorCode.WRN_UnreachableCode
FlowAnalysis\ControlFlowPass.cs (1)
268Diagnostics.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)
89[InlineData("#pragma warning disable $$CS0162", (int)ErrorCode.WRN_UnreachableCode)] 90[InlineData("#pragma warning disable $$CS0162, CS0219", (int)ErrorCode.WRN_UnreachableCode)] 94[InlineData("#pragma warning $$disable CS0162, CS0219", (int)ErrorCode.WRN_UnreachableCode)]
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (34)
CodeGen\CodeGenAsyncEHTests.cs (8)
2480Diagnostic(ErrorCode.WRN_UnreachableCode, "System").WithLocation(23, 17), 2483Diagnostic(ErrorCode.WRN_UnreachableCode, "System").WithLocation(42, 9) 2568Diagnostic(ErrorCode.WRN_UnreachableCode, "System").WithLocation(25, 21), 2571Diagnostic(ErrorCode.WRN_UnreachableCode, "System").WithLocation(32, 17), 2574Diagnostic(ErrorCode.WRN_UnreachableCode, "System").WithLocation(46, 13) 2660Diagnostic(ErrorCode.WRN_UnreachableCode, "System").WithLocation(25, 21), 2663Diagnostic(ErrorCode.WRN_UnreachableCode, "System").WithLocation(32, 17), 2666Diagnostic(ErrorCode.WRN_UnreachableCode, "System").WithLocation(47, 13)
CodeGen\CodeGenAsyncIteratorTests.cs (2)
1122Diagnostic(ErrorCode.WRN_UnreachableCode, "await").WithLocation(7, 9) 1976Diagnostic(ErrorCode.WRN_UnreachableCode, "await").WithLocation(7, 9)
CodeGen\CodeGenTryFinally.cs (7)
4091Diagnostic(ErrorCode.WRN_UnreachableCode, "M2").WithLocation(11, 13) 4109Diagnostic(ErrorCode.WRN_UnreachableCode, "M2").WithLocation(11, 13) 4155Diagnostic(ErrorCode.WRN_UnreachableCode, "M2").WithLocation(11, 13) 4172Diagnostic(ErrorCode.WRN_UnreachableCode, "M2").WithLocation(11, 13) 4218Diagnostic(ErrorCode.WRN_UnreachableCode, "M2").WithLocation(11, 13) 4236Diagnostic(ErrorCode.WRN_UnreachableCode, "M2").WithLocation(11, 13) 4281Diagnostic(ErrorCode.WRN_UnreachableCode, "try").WithLocation(10, 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)
228Diagnostic(ErrorCode.WRN_UnreachableCode, "Lab1"), 321c.VerifyDiagnostics(Diagnostic(ErrorCode.WRN_UnreachableCode, "i")); 361c.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.Emit3.UnitTests (113)
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) 5132Diagnostic(ErrorCode.WRN_UnreachableCode, "System"), 5158Diagnostic(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\OutVarTests.cs (26)
6307Diagnostic(ErrorCode.WRN_UnreachableCode, "System").WithLocation(65, 9), 6789Diagnostic(ErrorCode.WRN_UnreachableCode, "System").WithLocation(65, 9), 6798Diagnostic(ErrorCode.WRN_UnreachableCode, "Dummy").WithLocation(71, 14), 7044Diagnostic(ErrorCode.WRN_UnreachableCode, "System").WithLocation(65, 9), 7282Diagnostic(ErrorCode.WRN_UnreachableCode, "System").WithLocation(65, 9), 9053Diagnostic(ErrorCode.WRN_UnreachableCode, "x1").WithLocation(12, 27), 9065Diagnostic(ErrorCode.WRN_UnreachableCode, "var").WithLocation(17, 27), 9111Diagnostic(ErrorCode.WRN_UnreachableCode, "x1").WithLocation(12, 27), 9123Diagnostic(ErrorCode.WRN_UnreachableCode, "var").WithLocation(17, 27), 13169Diagnostic(ErrorCode.WRN_UnreachableCode, "return").WithLocation(14, 13), 13184Diagnostic(ErrorCode.WRN_UnreachableCode, "var").WithLocation(39, 9), 13196Diagnostic(ErrorCode.WRN_UnreachableCode, "Dummy").WithLocation(86, 9) 14666Diagnostic(ErrorCode.WRN_UnreachableCode, "System").WithLocation(15, 17) 14725Diagnostic(ErrorCode.WRN_UnreachableCode, "System").WithLocation(17, 21) 15105Diagnostic(ErrorCode.WRN_UnreachableCode, "var").WithLocation(39, 9), 15117Diagnostic(ErrorCode.WRN_UnreachableCode, "Dummy").WithLocation(86, 9) 23652Diagnostic(ErrorCode.WRN_UnreachableCode, "for").WithLocation(11, 1), 23750Diagnostic(ErrorCode.WRN_UnreachableCode, "for").WithLocation(11, 1), 26533Diagnostic(ErrorCode.WRN_UnreachableCode, "H").WithLocation(3, 1), 26577Diagnostic(ErrorCode.WRN_UnreachableCode, "H").WithLocation(3, 1), 26677Diagnostic(ErrorCode.WRN_UnreachableCode, "H").WithLocation(3, 1), 26721Diagnostic(ErrorCode.WRN_UnreachableCode, "H").WithLocation(3, 1), 26868Diagnostic(ErrorCode.WRN_UnreachableCode, "H").WithLocation(3, 1), 26909Diagnostic(ErrorCode.WRN_UnreachableCode, "H").WithLocation(3, 1), 26998Diagnostic(ErrorCode.WRN_UnreachableCode, "H").WithLocation(3, 1), 27040Diagnostic(ErrorCode.WRN_UnreachableCode, "H").WithLocation(3, 1),
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 (16)
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));
Semantics\PatternMatchingTests2.cs (3)
2522Diagnostic(ErrorCode.WRN_UnreachableCode, "break").WithLocation(7, 23), 2525Diagnostic(ErrorCode.WRN_UnreachableCode, "break").WithLocation(8, 23), 2528Diagnostic(ErrorCode.WRN_UnreachableCode, "break").WithLocation(10, 23)
Semantics\PatternSwitchTests.cs (10)
47Diagnostic(ErrorCode.WRN_UnreachableCode, "break").WithLocation(10, 17) 103Diagnostic(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) 695Diagnostic(ErrorCode.WRN_UnreachableCode, "break").WithLocation(8, 17) 3101Diagnostic(ErrorCode.WRN_UnreachableCode, "break").WithLocation(19, 17) 3133Diagnostic(ErrorCode.WRN_UnreachableCode, "break").WithLocation(13, 17)
Symbols\UserDefinedCompoundAssignmentOperatorsTests.cs (2)
5272Diagnostic(ErrorCode.WRN_UnreachableCode, "++").WithLocation(17, 13) 16685Diagnostic(ErrorCode.WRN_UnreachableCode, "x").WithLocation(17, 13)
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)
6921Diagnostic(ErrorCode.WRN_UnreachableCode, "int").WithLocation(12, 9) 7110Diagnostic(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 (71)
Semantics\BindingAsyncTests.cs (4)
1914Diagnostic(ErrorCode.WRN_UnreachableCode, "Goo"), 1920Diagnostic(ErrorCode.WRN_UnreachableCode, "return")); 1960Diagnostic(ErrorCode.WRN_UnreachableCode, "Goo"), 1966Diagnostic(ErrorCode.WRN_UnreachableCode, "Goo"));
Semantics\ForLoopErrorTests.cs (1)
148Diagnostic(ErrorCode.WRN_UnreachableCode, "j"),
Semantics\ImplicitObjectCreationTests.cs (4)
2595Diagnostic(ErrorCode.WRN_UnreachableCode, "break").WithLocation(10, 17) 2981Diagnostic(ErrorCode.WRN_UnreachableCode, "System").WithLocation(8, 13), 2984Diagnostic(ErrorCode.WRN_UnreachableCode, "System").WithLocation(13, 13), 2987Diagnostic(ErrorCode.WRN_UnreachableCode, "System").WithLocation(18, 13));
Semantics\LambdaTests.cs (2)
208Diagnostic(ErrorCode.WRN_UnreachableCode, "return").WithLocation(56, 42), 226Diagnostic(ErrorCode.WRN_UnreachableCode, "return").WithLocation(62, 44),
Semantics\LocalFunctionTests.cs (4)
3612Diagnostic(ErrorCode.WRN_UnreachableCode, "int").WithLocation(9, 9), 3646Diagnostic(ErrorCode.WRN_UnreachableCode, "int").WithLocation(9, 9), 3680Diagnostic(ErrorCode.WRN_UnreachableCode, "int").WithLocation(9, 9), 4295Diagnostic(ErrorCode.WRN_UnreachableCode, "int").WithLocation(13, 9),
Semantics\LockTests.cs (1)
409Diagnostic(ErrorCode.WRN_UnreachableCode, "ToString").WithLocation(9, 37)
Semantics\NullableReferenceTypesTests.cs (9)
20761Diagnostic(ErrorCode.WRN_UnreachableCode, "return").WithLocation(16, 9) 27890Diagnostic(ErrorCode.WRN_UnreachableCode, "return").WithLocation(20, 17) 28498Diagnostic(ErrorCode.WRN_UnreachableCode, "return").WithLocation(18, 17) 42878Diagnostic(ErrorCode.WRN_UnreachableCode, "y").WithLocation(11, 13) 76882Diagnostic(ErrorCode.WRN_UnreachableCode, "s1").WithLocation(8, 13), 76885Diagnostic(ErrorCode.WRN_UnreachableCode, "s1").WithLocation(11, 13), 76888Diagnostic(ErrorCode.WRN_UnreachableCode, "s1").WithLocation(16, 13), 76891Diagnostic(ErrorCode.WRN_UnreachableCode, "s1").WithLocation(21, 13) 161468Diagnostic(ErrorCode.WRN_UnreachableCode, "async").WithLocation(5, 1),
Semantics\RecordStructTests.cs (1)
7149Diagnostic(ErrorCode.WRN_UnreachableCode, "Y").WithLocation(12, 34),
Semantics\SemanticErrorTests.cs (20)
5374Diagnostic(ErrorCode.WRN_UnreachableCode, "Label2"), 5445Diagnostic(ErrorCode.WRN_UnreachableCode, "if"), 5446Diagnostic(ErrorCode.WRN_UnreachableCode, "label4"), 5447Diagnostic(ErrorCode.WRN_UnreachableCode, "label5"), 5478Diagnostic(ErrorCode.WRN_UnreachableCode, "return"), 5841Diagnostic(ErrorCode.WRN_UnreachableCode, "Console").WithLocation(13, 13) 5874Diagnostic(ErrorCode.WRN_UnreachableCode, "Console").WithLocation(12, 13) 15270Diagnostic(ErrorCode.WRN_UnreachableCode, "yield") 19146Diagnostic(ErrorCode.WRN_UnreachableCode, "int"), 19147Diagnostic(ErrorCode.WRN_UnreachableCode, "return")); 19178Diagnostic(ErrorCode.WRN_UnreachableCode, "for"), 19181Diagnostic(ErrorCode.WRN_UnreachableCode, "L2") 19209Diagnostic(ErrorCode.WRN_UnreachableCode, "return"), 19210Diagnostic(ErrorCode.WRN_UnreachableCode, "return"), 19211Diagnostic(ErrorCode.WRN_UnreachableCode, "return")); 19254Diagnostic(ErrorCode.WRN_UnreachableCode, "F"), 19255Diagnostic(ErrorCode.WRN_UnreachableCode, "System"), 19256Diagnostic(ErrorCode.WRN_UnreachableCode, "System")); 19280VerifyDiagnostics(Diagnostic(ErrorCode.WRN_UnreachableCode, "System")); 19297VerifyDiagnostics(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)
8134Diagnostic(ErrorCode.WRN_UnreachableCode, "System").WithLocation(4, 1) 8153Diagnostic(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)
3272Diagnostic(ErrorCode.WRN_UnreachableCode, "System").WithLocation(6, 1)); 3284Diagnostic(ErrorCode.WRN_UnreachableCode, "System").WithLocation(6, 1)); 3369Diagnostic(ErrorCode.WRN_UnreachableCode, "42").WithLocation(3, 1));
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (4)
Diagnostics\DiagnosticTest.cs (1)
2143Diagnostic(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));