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