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