25 references to WRN_ReturnNotNullIfNotNull
Microsoft.CodeAnalysis.CSharp (5)
Errors\ErrorFacts.cs (3)
82
nullableWarnings.Add(GetId(ErrorCode.
WRN_ReturnNotNullIfNotNull
));
487
case ErrorCode.
WRN_ReturnNotNullIfNotNull
:
2041
case ErrorCode.
WRN_ReturnNotNullIfNotNull
:
FlowAnalysis\NullableWalker.cs (1)
1265
Diagnostics.Add(ErrorCode.
WRN_ReturnNotNullIfNotNull
, location, inputParam.Name);
Generated\ErrorFacts.Generated.cs (1)
252
case ErrorCode.
WRN_ReturnNotNullIfNotNull
:
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (19)
Semantics\NullableReferenceTypesTests.cs (19)
30148
Diagnostic(ErrorCode.
WRN_ReturnNotNullIfNotNull
, "return null;").WithArguments("s1").WithLocation(33, 13)
30221
Diagnostic(ErrorCode.
WRN_ReturnNotNullIfNotNull
, "return null;", isSuppressed: false).WithArguments("p").WithLocation(15, 13),
30224
Diagnostic(ErrorCode.
WRN_ReturnNotNullIfNotNull
, "return M1();", isSuppressed: false).WithArguments("p").WithLocation(20, 13),
30227
Diagnostic(ErrorCode.
WRN_ReturnNotNullIfNotNull
, "return M1();", isSuppressed: false).WithArguments("p").WithLocation(29, 9));
30286
Diagnostic(ErrorCode.
WRN_ReturnNotNullIfNotNull
, "return null;", isSuppressed: false).WithArguments("p").WithLocation(21, 13),
30289
Diagnostic(ErrorCode.
WRN_ReturnNotNullIfNotNull
, "return M1();", isSuppressed: false).WithArguments("p").WithLocation(26, 13),
30292
Diagnostic(ErrorCode.
WRN_ReturnNotNullIfNotNull
, "return M1();", isSuppressed: false).WithArguments("p").WithLocation(31, 13));
30325
Diagnostic(ErrorCode.
WRN_ReturnNotNullIfNotNull
, "return null;", isSuppressed: false).WithArguments("q").WithLocation(15, 13),
30328
Diagnostic(ErrorCode.
WRN_ReturnNotNullIfNotNull
, "return M1();", isSuppressed: false).WithArguments("p").WithLocation(18, 9));
30390
Diagnostic(ErrorCode.
WRN_ReturnNotNullIfNotNull
, "return default;", isSuppressed: false).WithArguments("t").WithLocation(10, 13),
30393
Diagnostic(ErrorCode.
WRN_ReturnNotNullIfNotNull
, "return default;", isSuppressed: false).WithArguments("t").WithLocation(31, 13),
30493
Diagnostic(ErrorCode.
WRN_ReturnNotNullIfNotNull
, "return null;", isSuppressed: false).WithArguments("p").WithLocation(17, 13),
30496
Diagnostic(ErrorCode.
WRN_ReturnNotNullIfNotNull
, "return null;", isSuppressed: false).WithArguments("p").WithLocation(23, 13),
30502
Diagnostic(ErrorCode.
WRN_ReturnNotNullIfNotNull
, "return pOut;", isSuppressed: false).WithArguments("p").WithLocation(33, 9),
30564
Diagnostic(ErrorCode.
WRN_ReturnNotNullIfNotNull
, "return null;").WithArguments("p").WithLocation(41, 13),
30624
Diagnostic(ErrorCode.
WRN_ReturnNotNullIfNotNull
, "return local1();").WithArguments("p").WithLocation(40, 13),
30685
Diagnostic(ErrorCode.
WRN_ReturnNotNullIfNotNull
, "return null;").WithArguments("p").WithLocation(19, 17),
30688
Diagnostic(ErrorCode.
WRN_ReturnNotNullIfNotNull
, "return null;").WithArguments("p").WithLocation(25, 17),
30694
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
: