23 references to WRN_ParameterNotNullIfNotNull
Microsoft.CodeAnalysis.CSharp (5)
Errors\ErrorFacts.cs (3)
81
nullableWarnings.Add(GetId(ErrorCode.
WRN_ParameterNotNullIfNotNull
));
498
case ErrorCode.
WRN_ParameterNotNullIfNotNull
:
2095
or ErrorCode.
WRN_ParameterNotNullIfNotNull
FlowAnalysis\NullableWalker.cs (1)
1418
Diagnostics.Add(ErrorCode.
WRN_ParameterNotNullIfNotNull
, location, outputParam.Name, inputParam.Name);
Generated\ErrorFacts.Generated.cs (1)
250
case ErrorCode.
WRN_ParameterNotNullIfNotNull
:
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (2)
Semantics\ExtensionTests.cs (2)
47873
Diagnostic(ErrorCode.
WRN_ParameterNotNullIfNotNull
, "return;").WithArguments("o2", "o").WithLocation(33, 17),
47876
Diagnostic(ErrorCode.
WRN_ParameterNotNullIfNotNull
, "}").WithArguments("o2", "o").WithLocation(43, 9));
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (15)
Semantics\NullableReferenceTypesTests.cs (15)
32115
Diagnostic(ErrorCode.
WRN_ParameterNotNullIfNotNull
, "return;").WithArguments("s1", "s2").WithLocation(12, 13)
32378
Diagnostic(ErrorCode.
WRN_ParameterNotNullIfNotNull
, "return;", isSuppressed: false).WithArguments("pOut", "p").WithLocation(16, 13),
32381
Diagnostic(ErrorCode.
WRN_ParameterNotNullIfNotNull
, "}", isSuppressed: false).WithArguments("pOut", "p").WithLocation(26, 5));
32429
Diagnostic(ErrorCode.
WRN_ParameterNotNullIfNotNull
, "return p;", isSuppressed: false).WithArguments("pOut", "p").WithLocation(11, 13),
32438
Diagnostic(ErrorCode.
WRN_ParameterNotNullIfNotNull
, "return null;", isSuppressed: false).WithArguments("pOut", "p").WithLocation(23, 13),
32444
Diagnostic(ErrorCode.
WRN_ParameterNotNullIfNotNull
, "return pOut;", isSuppressed: false).WithArguments("pOut", "p").WithLocation(33, 9));
32506
Diagnostic(ErrorCode.
WRN_ParameterNotNullIfNotNull
, "return null;").WithArguments("pOut", "p").WithLocation(41, 13));
32566
Diagnostic(ErrorCode.
WRN_ParameterNotNullIfNotNull
, "return local1();").WithArguments("pOut", "p").WithLocation(40, 13));
32621
Diagnostic(ErrorCode.
WRN_ParameterNotNullIfNotNull
, "return p;").WithArguments("pOut", "p").WithLocation(13, 17),
32630
Diagnostic(ErrorCode.
WRN_ParameterNotNullIfNotNull
, "return null;").WithArguments("pOut", "p").WithLocation(25, 17),
32636
Diagnostic(ErrorCode.
WRN_ParameterNotNullIfNotNull
, "return pOut;").WithArguments("pOut", "p").WithLocation(35, 13)
32677
Diagnostic(ErrorCode.
WRN_ParameterNotNullIfNotNull
, "return;").WithArguments("pOut", "p").WithLocation(10, 13),
32680
Diagnostic(ErrorCode.
WRN_ParameterNotNullIfNotNull
, "}").WithArguments("pOut", "p").WithLocation(26, 5));
32722
Diagnostic(ErrorCode.
WRN_ParameterNotNullIfNotNull
, "return;").WithArguments("pOut", "p").WithLocation(12, 13),
32725
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
: