21 references to WRN_ParameterNotNullIfNotNull
Microsoft.CodeAnalysis.CSharp (5)
Errors\ErrorFacts.cs (3)
81
nullableWarnings.Add(GetId(ErrorCode.
WRN_ParameterNotNullIfNotNull
));
486
case ErrorCode.
WRN_ParameterNotNullIfNotNull
:
2040
case ErrorCode.
WRN_ParameterNotNullIfNotNull
:
FlowAnalysis\NullableWalker.cs (1)
1260
Diagnostics.Add(ErrorCode.
WRN_ParameterNotNullIfNotNull
, location, outputParam.Name, inputParam.Name);
Generated\ErrorFacts.Generated.cs (1)
251
case ErrorCode.
WRN_ParameterNotNullIfNotNull
:
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (15)
Semantics\NullableReferenceTypesTests.cs (15)
30176
Diagnostic(ErrorCode.
WRN_ParameterNotNullIfNotNull
, "return;").WithArguments("s1", "s2").WithLocation(12, 13)
30439
Diagnostic(ErrorCode.
WRN_ParameterNotNullIfNotNull
, "return;", isSuppressed: false).WithArguments("pOut", "p").WithLocation(16, 13),
30442
Diagnostic(ErrorCode.
WRN_ParameterNotNullIfNotNull
, "}", isSuppressed: false).WithArguments("pOut", "p").WithLocation(26, 5));
30490
Diagnostic(ErrorCode.
WRN_ParameterNotNullIfNotNull
, "return p;", isSuppressed: false).WithArguments("pOut", "p").WithLocation(11, 13),
30499
Diagnostic(ErrorCode.
WRN_ParameterNotNullIfNotNull
, "return null;", isSuppressed: false).WithArguments("pOut", "p").WithLocation(23, 13),
30505
Diagnostic(ErrorCode.
WRN_ParameterNotNullIfNotNull
, "return pOut;", isSuppressed: false).WithArguments("pOut", "p").WithLocation(33, 9));
30567
Diagnostic(ErrorCode.
WRN_ParameterNotNullIfNotNull
, "return null;").WithArguments("pOut", "p").WithLocation(41, 13));
30627
Diagnostic(ErrorCode.
WRN_ParameterNotNullIfNotNull
, "return local1();").WithArguments("pOut", "p").WithLocation(40, 13));
30682
Diagnostic(ErrorCode.
WRN_ParameterNotNullIfNotNull
, "return p;").WithArguments("pOut", "p").WithLocation(13, 17),
30691
Diagnostic(ErrorCode.
WRN_ParameterNotNullIfNotNull
, "return null;").WithArguments("pOut", "p").WithLocation(25, 17),
30697
Diagnostic(ErrorCode.
WRN_ParameterNotNullIfNotNull
, "return pOut;").WithArguments("pOut", "p").WithLocation(35, 13)
30738
Diagnostic(ErrorCode.
WRN_ParameterNotNullIfNotNull
, "return;").WithArguments("pOut", "p").WithLocation(10, 13),
30741
Diagnostic(ErrorCode.
WRN_ParameterNotNullIfNotNull
, "}").WithArguments("pOut", "p").WithLocation(26, 5));
30783
Diagnostic(ErrorCode.
WRN_ParameterNotNullIfNotNull
, "return;").WithArguments("pOut", "p").WithLocation(12, 13),
30786
Diagnostic(ErrorCode.
WRN_ParameterNotNullIfNotNull
, "}").WithArguments("pOut", "p").WithLocation(28, 5));
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (1)
Diagnostics\DiagnosticTest.cs (1)
291
case ErrorCode.
WRN_ParameterNotNullIfNotNull
: