22 references to WRN_ShouldNotReturn
Microsoft.CodeAnalysis.CSharp (5)
Errors\ErrorFacts.cs (3)
69nullableWarnings.Add(GetId(ErrorCode.WRN_ShouldNotReturn)); 479case ErrorCode.WRN_ShouldNotReturn: 2036or ErrorCode.WRN_ShouldNotReturn
FlowAnalysis\NullableWalker.cs (1)
1414ReportDiagnostic(ErrorCode.WRN_ShouldNotReturn, syntaxOpt?.GetLocation() ?? methodMainNode.Syntax.GetLastToken().GetLocation());
Generated\ErrorFacts.Generated.cs (1)
233case ErrorCode.WRN_ShouldNotReturn:
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (16)
Semantics\LambdaTests.cs (2)
4781Diagnostic(ErrorCode.WRN_ShouldNotReturn, "{ }").WithLocation(9, 43) 4826Diagnostic(ErrorCode.WRN_ShouldNotReturn, "{ }").WithLocation(11, 58)
Semantics\NullableReferenceTypesTests.cs (14)
37071Diagnostic(ErrorCode.WRN_ShouldNotReturn, "{ }").WithLocation(11, 21) 37125Diagnostic(ErrorCode.WRN_ShouldNotReturn, "return;").WithLocation(9, 9) 42981Diagnostic(ErrorCode.WRN_ShouldNotReturn, "}").WithLocation(9, 5), 42984Diagnostic(ErrorCode.WRN_ShouldNotReturn, "return true;").WithLocation(14, 9), 42987Diagnostic(ErrorCode.WRN_ShouldNotReturn, "return true;").WithLocation(23, 13), 42990Diagnostic(ErrorCode.WRN_ShouldNotReturn, "true").WithLocation(28, 12) 43063Diagnostic(ErrorCode.WRN_ShouldNotReturn, "{ }").WithLocation(5, 39), 43066Diagnostic(ErrorCode.WRN_ShouldNotReturn, "return true;").WithLocation(9, 9), 43069Diagnostic(ErrorCode.WRN_ShouldNotReturn, "return true;").WithLocation(17, 13), 43072Diagnostic(ErrorCode.WRN_ShouldNotReturn, "true").WithLocation(21, 8) 43147Diagnostic(ErrorCode.WRN_ShouldNotReturn, "{ }").WithLocation(19, 34), 43150Diagnostic(ErrorCode.WRN_ShouldNotReturn, "return true;").WithLocation(23, 5), 43153Diagnostic(ErrorCode.WRN_ShouldNotReturn, "return true;").WithLocation(31, 9), 43156Diagnostic(ErrorCode.WRN_ShouldNotReturn, "true").WithLocation(35, 8)
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (1)
Diagnostics\DiagnosticTest.cs (1)
385case ErrorCode.WRN_ShouldNotReturn: