22 references to WRN_ShouldNotReturn
Microsoft.CodeAnalysis.CSharp (5)
Errors\ErrorFacts.cs (3)
69nullableWarnings.Add(GetId(ErrorCode.WRN_ShouldNotReturn)); 478case ErrorCode.WRN_ShouldNotReturn: 2035or ErrorCode.WRN_ShouldNotReturn
FlowAnalysis\NullableWalker.cs (1)
1437ReportDiagnostic(ErrorCode.WRN_ShouldNotReturn, syntaxOpt?.GetLocation() ?? methodMainNode.Syntax.GetLastToken().GetLocation());
Generated\ErrorFacts.Generated.cs (1)
232case ErrorCode.WRN_ShouldNotReturn:
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (16)
Semantics\LambdaTests.cs (2)
4776Diagnostic(ErrorCode.WRN_ShouldNotReturn, "{ }").WithLocation(9, 43) 4821Diagnostic(ErrorCode.WRN_ShouldNotReturn, "{ }").WithLocation(11, 58)
Semantics\NullableReferenceTypesTests.cs (14)
37072Diagnostic(ErrorCode.WRN_ShouldNotReturn, "{ }").WithLocation(11, 21) 37126Diagnostic(ErrorCode.WRN_ShouldNotReturn, "return;").WithLocation(9, 9) 42982Diagnostic(ErrorCode.WRN_ShouldNotReturn, "}").WithLocation(9, 5), 42985Diagnostic(ErrorCode.WRN_ShouldNotReturn, "return true;").WithLocation(14, 9), 42988Diagnostic(ErrorCode.WRN_ShouldNotReturn, "return true;").WithLocation(23, 13), 42991Diagnostic(ErrorCode.WRN_ShouldNotReturn, "true").WithLocation(28, 12) 43064Diagnostic(ErrorCode.WRN_ShouldNotReturn, "{ }").WithLocation(5, 39), 43067Diagnostic(ErrorCode.WRN_ShouldNotReturn, "return true;").WithLocation(9, 9), 43070Diagnostic(ErrorCode.WRN_ShouldNotReturn, "return true;").WithLocation(17, 13), 43073Diagnostic(ErrorCode.WRN_ShouldNotReturn, "true").WithLocation(21, 8) 43148Diagnostic(ErrorCode.WRN_ShouldNotReturn, "{ }").WithLocation(19, 34), 43151Diagnostic(ErrorCode.WRN_ShouldNotReturn, "return true;").WithLocation(23, 5), 43154Diagnostic(ErrorCode.WRN_ShouldNotReturn, "return true;").WithLocation(31, 9), 43157Diagnostic(ErrorCode.WRN_ShouldNotReturn, "true").WithLocation(35, 8)
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (1)
Diagnostics\DiagnosticTest.cs (1)
385case ErrorCode.WRN_ShouldNotReturn: