27 references to WRN_ReturnNotNullIfNotNull
Microsoft.CodeAnalysis.CSharp (5)
Errors\ErrorFacts.cs (3)
82
nullableWarnings.Add(GetId(ErrorCode.
WRN_ReturnNotNullIfNotNull
));
500
case ErrorCode.
WRN_ReturnNotNullIfNotNull
:
2098
or ErrorCode.
WRN_ReturnNotNullIfNotNull
FlowAnalysis\NullableWalker.cs (1)
1400
Diagnostics.Add(ErrorCode.
WRN_ReturnNotNullIfNotNull
, location, inputParam.Name);
Generated\ErrorFacts.Generated.cs (1)
252
case ErrorCode.
WRN_ReturnNotNullIfNotNull
:
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (2)
Semantics\ExtensionTests.cs (2)
42100
Diagnostic(ErrorCode.
WRN_ReturnNotNullIfNotNull
, "return null;").WithArguments("o").WithLocation(26, 17),
42103
Diagnostic(ErrorCode.
WRN_ReturnNotNullIfNotNull
, "return null;").WithArguments("o").WithLocation(36, 13));
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (19)
Semantics\NullableReferenceTypesTests.cs (19)
32086
Diagnostic(ErrorCode.
WRN_ReturnNotNullIfNotNull
, "return null;").WithArguments("s1").WithLocation(33, 13)
32159
Diagnostic(ErrorCode.
WRN_ReturnNotNullIfNotNull
, "return null;", isSuppressed: false).WithArguments("p").WithLocation(15, 13),
32162
Diagnostic(ErrorCode.
WRN_ReturnNotNullIfNotNull
, "return M1();", isSuppressed: false).WithArguments("p").WithLocation(20, 13),
32165
Diagnostic(ErrorCode.
WRN_ReturnNotNullIfNotNull
, "return M1();", isSuppressed: false).WithArguments("p").WithLocation(29, 9));
32224
Diagnostic(ErrorCode.
WRN_ReturnNotNullIfNotNull
, "return null;", isSuppressed: false).WithArguments("p").WithLocation(21, 13),
32227
Diagnostic(ErrorCode.
WRN_ReturnNotNullIfNotNull
, "return M1();", isSuppressed: false).WithArguments("p").WithLocation(26, 13),
32230
Diagnostic(ErrorCode.
WRN_ReturnNotNullIfNotNull
, "return M1();", isSuppressed: false).WithArguments("p").WithLocation(31, 13));
32263
Diagnostic(ErrorCode.
WRN_ReturnNotNullIfNotNull
, "return null;", isSuppressed: false).WithArguments("q").WithLocation(15, 13),
32266
Diagnostic(ErrorCode.
WRN_ReturnNotNullIfNotNull
, "return M1();", isSuppressed: false).WithArguments("p").WithLocation(18, 9));
32328
Diagnostic(ErrorCode.
WRN_ReturnNotNullIfNotNull
, "return default;", isSuppressed: false).WithArguments("t").WithLocation(10, 13),
32331
Diagnostic(ErrorCode.
WRN_ReturnNotNullIfNotNull
, "return default;", isSuppressed: false).WithArguments("t").WithLocation(31, 13),
32431
Diagnostic(ErrorCode.
WRN_ReturnNotNullIfNotNull
, "return null;", isSuppressed: false).WithArguments("p").WithLocation(17, 13),
32434
Diagnostic(ErrorCode.
WRN_ReturnNotNullIfNotNull
, "return null;", isSuppressed: false).WithArguments("p").WithLocation(23, 13),
32440
Diagnostic(ErrorCode.
WRN_ReturnNotNullIfNotNull
, "return pOut;", isSuppressed: false).WithArguments("p").WithLocation(33, 9),
32502
Diagnostic(ErrorCode.
WRN_ReturnNotNullIfNotNull
, "return null;").WithArguments("p").WithLocation(41, 13),
32562
Diagnostic(ErrorCode.
WRN_ReturnNotNullIfNotNull
, "return local1();").WithArguments("p").WithLocation(40, 13),
32623
Diagnostic(ErrorCode.
WRN_ReturnNotNullIfNotNull
, "return null;").WithArguments("p").WithLocation(19, 17),
32626
Diagnostic(ErrorCode.
WRN_ReturnNotNullIfNotNull
, "return null;").WithArguments("p").WithLocation(25, 17),
32632
Diagnostic(ErrorCode.
WRN_ReturnNotNullIfNotNull
, "return pOut;").WithArguments("p").WithLocation(35, 13),
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (1)
Diagnostics\DiagnosticTest.cs (1)
292
case ErrorCode.
WRN_ReturnNotNullIfNotNull
: