254 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 (26)
CodeGen\CodeGenAsyncIteratorTests.cs (2)
1122Diagnostic(ErrorCode.WRN_UnreachableCode, "await").WithLocation(7, 9) 1991Diagnostic(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) 4284Diagnostic(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)
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) 23663Diagnostic(ErrorCode.WRN_UnreachableCode, "for").WithLocation(11, 1), 23761Diagnostic(ErrorCode.WRN_UnreachableCode, "for").WithLocation(11, 1), 26544Diagnostic(ErrorCode.WRN_UnreachableCode, "H").WithLocation(3, 1), 26588Diagnostic(ErrorCode.WRN_UnreachableCode, "H").WithLocation(3, 1), 26688Diagnostic(ErrorCode.WRN_UnreachableCode, "H").WithLocation(3, 1), 26732Diagnostic(ErrorCode.WRN_UnreachableCode, "H").WithLocation(3, 1), 26879Diagnostic(ErrorCode.WRN_UnreachableCode, "H").WithLocation(3, 1), 26920Diagnostic(ErrorCode.WRN_UnreachableCode, "H").WithLocation(3, 1), 27009Diagnostic(ErrorCode.WRN_UnreachableCode, "H").WithLocation(3, 1), 27051Diagnostic(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) 538Diagnostic(ErrorCode.WRN_UnreachableCode, "break").WithLocation(13, 17) 561Diagnostic(ErrorCode.WRN_UnreachableCode, "break").WithLocation(8, 17) 584Diagnostic(ErrorCode.WRN_UnreachableCode, "break").WithLocation(8, 17) 607Diagnostic(ErrorCode.WRN_UnreachableCode, "break").WithLocation(8, 17) 630Diagnostic(ErrorCode.WRN_UnreachableCode, "break").WithLocation(8, 17) 698Diagnostic(ErrorCode.WRN_UnreachableCode, "break").WithLocation(8, 17) 3113Diagnostic(ErrorCode.WRN_UnreachableCode, "break").WithLocation(19, 17) 3145Diagnostic(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)
1911Diagnostic(ErrorCode.WRN_UnreachableCode, "Goo"), 1920Diagnostic(ErrorCode.WRN_UnreachableCode, "return"), 1966Diagnostic(ErrorCode.WRN_UnreachableCode, "Goo"), 1972Diagnostic(ErrorCode.WRN_UnreachableCode, "Goo"),
Semantics\ForLoopErrorTests.cs (1)
148Diagnostic(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)
208Diagnostic(ErrorCode.WRN_UnreachableCode, "return").WithLocation(56, 42), 226Diagnostic(ErrorCode.WRN_UnreachableCode, "return").WithLocation(62, 44),
Semantics\LocalFunctionTests.cs (4)
3307Diagnostic(ErrorCode.WRN_UnreachableCode, "int").WithLocation(9, 9), 3341Diagnostic(ErrorCode.WRN_UnreachableCode, "int").WithLocation(9, 9), 3375Diagnostic(ErrorCode.WRN_UnreachableCode, "int").WithLocation(9, 9), 3990Diagnostic(ErrorCode.WRN_UnreachableCode, "int").WithLocation(13, 9),
Semantics\LockTests.cs (1)
409Diagnostic(ErrorCode.WRN_UnreachableCode, "ToString").WithLocation(9, 37)
Semantics\NullableReferenceTypesTests.cs (9)
20764Diagnostic(ErrorCode.WRN_UnreachableCode, "return").WithLocation(16, 9) 27889Diagnostic(ErrorCode.WRN_UnreachableCode, "return").WithLocation(20, 17) 28497Diagnostic(ErrorCode.WRN_UnreachableCode, "return").WithLocation(18, 17) 42877Diagnostic(ErrorCode.WRN_UnreachableCode, "y").WithLocation(11, 13) 76858Diagnostic(ErrorCode.WRN_UnreachableCode, "s1").WithLocation(8, 13), 76861Diagnostic(ErrorCode.WRN_UnreachableCode, "s1").WithLocation(11, 13), 76864Diagnostic(ErrorCode.WRN_UnreachableCode, "s1").WithLocation(16, 13), 76867Diagnostic(ErrorCode.WRN_UnreachableCode, "s1").WithLocation(21, 13) 161418Diagnostic(ErrorCode.WRN_UnreachableCode, "async").WithLocation(5, 1),
Semantics\RecordStructTests.cs (1)
7149Diagnostic(ErrorCode.WRN_UnreachableCode, "Y").WithLocation(12, 34),
Semantics\SemanticErrorTests.cs (20)
5329Diagnostic(ErrorCode.WRN_UnreachableCode, "Label2"), 5400Diagnostic(ErrorCode.WRN_UnreachableCode, "if"), 5401Diagnostic(ErrorCode.WRN_UnreachableCode, "label4"), 5402Diagnostic(ErrorCode.WRN_UnreachableCode, "label5"), 5433Diagnostic(ErrorCode.WRN_UnreachableCode, "return"), 5796Diagnostic(ErrorCode.WRN_UnreachableCode, "Console").WithLocation(13, 13) 5829Diagnostic(ErrorCode.WRN_UnreachableCode, "Console").WithLocation(12, 13) 15225Diagnostic(ErrorCode.WRN_UnreachableCode, "yield") 19101Diagnostic(ErrorCode.WRN_UnreachableCode, "int"), 19102Diagnostic(ErrorCode.WRN_UnreachableCode, "return")); 19133Diagnostic(ErrorCode.WRN_UnreachableCode, "for"), 19136Diagnostic(ErrorCode.WRN_UnreachableCode, "L2") 19164Diagnostic(ErrorCode.WRN_UnreachableCode, "return"), 19165Diagnostic(ErrorCode.WRN_UnreachableCode, "return"), 19166Diagnostic(ErrorCode.WRN_UnreachableCode, "return")); 19209Diagnostic(ErrorCode.WRN_UnreachableCode, "F"), 19210Diagnostic(ErrorCode.WRN_UnreachableCode, "System"), 19211Diagnostic(ErrorCode.WRN_UnreachableCode, "System")); 19235VerifyDiagnostics(Diagnostic(ErrorCode.WRN_UnreachableCode, "System")); 19252VerifyDiagnostics(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)
7999Diagnostic(ErrorCode.WRN_UnreachableCode, "System").WithLocation(4, 1) 8018Diagnostic(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));