22 references to WRN_ShouldNotReturn
Microsoft.CodeAnalysis.CSharp (5)
Errors\ErrorFacts.cs (3)
69
nullableWarnings.Add(GetId(ErrorCode.
WRN_ShouldNotReturn
));
478
case ErrorCode.
WRN_ShouldNotReturn
:
2035
or ErrorCode.
WRN_ShouldNotReturn
FlowAnalysis\NullableWalker.cs (1)
1437
ReportDiagnostic(ErrorCode.
WRN_ShouldNotReturn
, syntaxOpt?.GetLocation() ?? methodMainNode.Syntax.GetLastToken().GetLocation());
Generated\ErrorFacts.Generated.cs (1)
232
case ErrorCode.
WRN_ShouldNotReturn
:
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (16)
Semantics\LambdaTests.cs (2)
4776
Diagnostic(ErrorCode.
WRN_ShouldNotReturn
, "{ }").WithLocation(9, 43)
4821
Diagnostic(ErrorCode.
WRN_ShouldNotReturn
, "{ }").WithLocation(11, 58)
Semantics\NullableReferenceTypesTests.cs (14)
37072
Diagnostic(ErrorCode.
WRN_ShouldNotReturn
, "{ }").WithLocation(11, 21)
37126
Diagnostic(ErrorCode.
WRN_ShouldNotReturn
, "return;").WithLocation(9, 9)
42982
Diagnostic(ErrorCode.
WRN_ShouldNotReturn
, "}").WithLocation(9, 5),
42985
Diagnostic(ErrorCode.
WRN_ShouldNotReturn
, "return true;").WithLocation(14, 9),
42988
Diagnostic(ErrorCode.
WRN_ShouldNotReturn
, "return true;").WithLocation(23, 13),
42991
Diagnostic(ErrorCode.
WRN_ShouldNotReturn
, "true").WithLocation(28, 12)
43064
Diagnostic(ErrorCode.
WRN_ShouldNotReturn
, "{ }").WithLocation(5, 39),
43067
Diagnostic(ErrorCode.
WRN_ShouldNotReturn
, "return true;").WithLocation(9, 9),
43070
Diagnostic(ErrorCode.
WRN_ShouldNotReturn
, "return true;").WithLocation(17, 13),
43073
Diagnostic(ErrorCode.
WRN_ShouldNotReturn
, "true").WithLocation(21, 8)
43148
Diagnostic(ErrorCode.
WRN_ShouldNotReturn
, "{ }").WithLocation(19, 34),
43151
Diagnostic(ErrorCode.
WRN_ShouldNotReturn
, "return true;").WithLocation(23, 5),
43154
Diagnostic(ErrorCode.
WRN_ShouldNotReturn
, "return true;").WithLocation(31, 9),
43157
Diagnostic(ErrorCode.
WRN_ShouldNotReturn
, "true").WithLocation(35, 8)
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (1)
Diagnostics\DiagnosticTest.cs (1)
385
case ErrorCode.
WRN_ShouldNotReturn
: