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