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