22 references to WRN_ShouldNotReturn
Microsoft.CodeAnalysis.CSharp (5)
Errors\ErrorFacts.cs (3)
69nullableWarnings.Add(GetId(ErrorCode.WRN_ShouldNotReturn)); 466case ErrorCode.WRN_ShouldNotReturn: 1979case ErrorCode.WRN_ShouldNotReturn:
FlowAnalysis\NullableWalker.cs (1)
1279ReportDiagnostic(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)
4766Diagnostic(ErrorCode.WRN_ShouldNotReturn, "{ }").WithLocation(9, 43) 4811Diagnostic(ErrorCode.WRN_ShouldNotReturn, "{ }").WithLocation(11, 58)
Semantics\NullableReferenceTypesTests.cs (14)
35133Diagnostic(ErrorCode.WRN_ShouldNotReturn, "{ }").WithLocation(11, 21) 35187Diagnostic(ErrorCode.WRN_ShouldNotReturn, "return;").WithLocation(9, 9) 40915Diagnostic(ErrorCode.WRN_ShouldNotReturn, "}").WithLocation(9, 5), 40918Diagnostic(ErrorCode.WRN_ShouldNotReturn, "return true;").WithLocation(14, 9), 40921Diagnostic(ErrorCode.WRN_ShouldNotReturn, "return true;").WithLocation(23, 13), 40924Diagnostic(ErrorCode.WRN_ShouldNotReturn, "true").WithLocation(28, 12) 40997Diagnostic(ErrorCode.WRN_ShouldNotReturn, "{ }").WithLocation(5, 39), 41000Diagnostic(ErrorCode.WRN_ShouldNotReturn, "return true;").WithLocation(9, 9), 41003Diagnostic(ErrorCode.WRN_ShouldNotReturn, "return true;").WithLocation(17, 13), 41006Diagnostic(ErrorCode.WRN_ShouldNotReturn, "true").WithLocation(21, 8) 41081Diagnostic(ErrorCode.WRN_ShouldNotReturn, "{ }").WithLocation(19, 34), 41084Diagnostic(ErrorCode.WRN_ShouldNotReturn, "return true;").WithLocation(23, 5), 41087Diagnostic(ErrorCode.WRN_ShouldNotReturn, "return true;").WithLocation(31, 9), 41090Diagnostic(ErrorCode.WRN_ShouldNotReturn, "true").WithLocation(35, 8)
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (1)
Diagnostics\DiagnosticTest.cs (1)
363case ErrorCode.WRN_ShouldNotReturn: