22 references to WRN_ShouldNotReturn
Microsoft.CodeAnalysis.CSharp (5)
Errors\ErrorFacts.cs (3)
69nullableWarnings.Add(GetId(ErrorCode.WRN_ShouldNotReturn)); 478case ErrorCode.WRN_ShouldNotReturn: 2036or 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)
37100Diagnostic(ErrorCode.WRN_ShouldNotReturn, "{ }").WithLocation(11, 21) 37154Diagnostic(ErrorCode.WRN_ShouldNotReturn, "return;").WithLocation(9, 9) 43010Diagnostic(ErrorCode.WRN_ShouldNotReturn, "}").WithLocation(9, 5), 43013Diagnostic(ErrorCode.WRN_ShouldNotReturn, "return true;").WithLocation(14, 9), 43016Diagnostic(ErrorCode.WRN_ShouldNotReturn, "return true;").WithLocation(23, 13), 43019Diagnostic(ErrorCode.WRN_ShouldNotReturn, "true").WithLocation(28, 12) 43092Diagnostic(ErrorCode.WRN_ShouldNotReturn, "{ }").WithLocation(5, 39), 43095Diagnostic(ErrorCode.WRN_ShouldNotReturn, "return true;").WithLocation(9, 9), 43098Diagnostic(ErrorCode.WRN_ShouldNotReturn, "return true;").WithLocation(17, 13), 43101Diagnostic(ErrorCode.WRN_ShouldNotReturn, "true").WithLocation(21, 8) 43176Diagnostic(ErrorCode.WRN_ShouldNotReturn, "{ }").WithLocation(19, 34), 43179Diagnostic(ErrorCode.WRN_ShouldNotReturn, "return true;").WithLocation(23, 5), 43182Diagnostic(ErrorCode.WRN_ShouldNotReturn, "return true;").WithLocation(31, 9), 43185Diagnostic(ErrorCode.WRN_ShouldNotReturn, "true").WithLocation(35, 8)
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (1)
Diagnostics\DiagnosticTest.cs (1)
373case ErrorCode.WRN_ShouldNotReturn: