27 references to WRN_ReturnNotNullIfNotNull
Microsoft.CodeAnalysis.CSharp (5)
Errors\ErrorFacts.cs (3)
82
nullableWarnings.Add(GetId(ErrorCode.
WRN_ReturnNotNullIfNotNull
));
499
case ErrorCode.
WRN_ReturnNotNullIfNotNull
:
2096
or ErrorCode.
WRN_ReturnNotNullIfNotNull
FlowAnalysis\NullableWalker.cs (1)
1423
Diagnostics.Add(ErrorCode.
WRN_ReturnNotNullIfNotNull
, location, inputParam.Name);
Generated\ErrorFacts.Generated.cs (1)
251
case ErrorCode.
WRN_ReturnNotNullIfNotNull
:
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (2)
Semantics\ExtensionTests.cs (2)
48782
Diagnostic(ErrorCode.
WRN_ReturnNotNullIfNotNull
, "return null;").WithArguments("o").WithLocation(26, 17),
48785
Diagnostic(ErrorCode.
WRN_ReturnNotNullIfNotNull
, "return null;").WithArguments("o").WithLocation(36, 13));
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (19)
Semantics\NullableReferenceTypesTests.cs (19)
32087
Diagnostic(ErrorCode.
WRN_ReturnNotNullIfNotNull
, "return null;").WithArguments("s1").WithLocation(33, 13)
32160
Diagnostic(ErrorCode.
WRN_ReturnNotNullIfNotNull
, "return null;", isSuppressed: false).WithArguments("p").WithLocation(15, 13),
32163
Diagnostic(ErrorCode.
WRN_ReturnNotNullIfNotNull
, "return M1();", isSuppressed: false).WithArguments("p").WithLocation(20, 13),
32166
Diagnostic(ErrorCode.
WRN_ReturnNotNullIfNotNull
, "return M1();", isSuppressed: false).WithArguments("p").WithLocation(29, 9));
32225
Diagnostic(ErrorCode.
WRN_ReturnNotNullIfNotNull
, "return null;", isSuppressed: false).WithArguments("p").WithLocation(21, 13),
32228
Diagnostic(ErrorCode.
WRN_ReturnNotNullIfNotNull
, "return M1();", isSuppressed: false).WithArguments("p").WithLocation(26, 13),
32231
Diagnostic(ErrorCode.
WRN_ReturnNotNullIfNotNull
, "return M1();", isSuppressed: false).WithArguments("p").WithLocation(31, 13));
32264
Diagnostic(ErrorCode.
WRN_ReturnNotNullIfNotNull
, "return null;", isSuppressed: false).WithArguments("q").WithLocation(15, 13),
32267
Diagnostic(ErrorCode.
WRN_ReturnNotNullIfNotNull
, "return M1();", isSuppressed: false).WithArguments("p").WithLocation(18, 9));
32329
Diagnostic(ErrorCode.
WRN_ReturnNotNullIfNotNull
, "return default;", isSuppressed: false).WithArguments("t").WithLocation(10, 13),
32332
Diagnostic(ErrorCode.
WRN_ReturnNotNullIfNotNull
, "return default;", isSuppressed: false).WithArguments("t").WithLocation(31, 13),
32432
Diagnostic(ErrorCode.
WRN_ReturnNotNullIfNotNull
, "return null;", isSuppressed: false).WithArguments("p").WithLocation(17, 13),
32435
Diagnostic(ErrorCode.
WRN_ReturnNotNullIfNotNull
, "return null;", isSuppressed: false).WithArguments("p").WithLocation(23, 13),
32441
Diagnostic(ErrorCode.
WRN_ReturnNotNullIfNotNull
, "return pOut;", isSuppressed: false).WithArguments("p").WithLocation(33, 9),
32503
Diagnostic(ErrorCode.
WRN_ReturnNotNullIfNotNull
, "return null;").WithArguments("p").WithLocation(41, 13),
32563
Diagnostic(ErrorCode.
WRN_ReturnNotNullIfNotNull
, "return local1();").WithArguments("p").WithLocation(40, 13),
32624
Diagnostic(ErrorCode.
WRN_ReturnNotNullIfNotNull
, "return null;").WithArguments("p").WithLocation(19, 17),
32627
Diagnostic(ErrorCode.
WRN_ReturnNotNullIfNotNull
, "return null;").WithArguments("p").WithLocation(25, 17),
32633
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
: