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