45 references to WRN_ParameterDisallowsNull
Microsoft.CodeAnalysis.CSharp (5)
Errors\ErrorFacts.cs (3)
80
nullableWarnings.Add(GetId(ErrorCode.
WRN_ParameterDisallowsNull
));
480
case ErrorCode.
WRN_ParameterDisallowsNull
:
1993
case ErrorCode.
WRN_ParameterDisallowsNull
:
FlowAnalysis\NullableWalker.cs (1)
1174
Diagnostics.Add(ErrorCode.
WRN_ParameterDisallowsNull
, location, parameter.Name);
Generated\ErrorFacts.Generated.cs (1)
244
case ErrorCode.
WRN_ParameterDisallowsNull
:
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (39)
Semantics\NullableReferenceTypesTests.cs (39)
27104
Diagnostic(ErrorCode.
WRN_ParameterDisallowsNull
, "}").WithArguments("s").WithLocation(12, 5)
27537
Diagnostic(ErrorCode.
WRN_ParameterDisallowsNull
, "return NonConstantBool();").WithArguments("s").WithLocation(8, 9),
27540
Diagnostic(ErrorCode.
WRN_ParameterDisallowsNull
, "return NonConstantBool();").WithArguments("s").WithLocation(13, 9),
27543
Diagnostic(ErrorCode.
WRN_ParameterDisallowsNull
, "return NonConstantBool();").WithArguments("s").WithLocation(18, 9)
27596
Diagnostic(ErrorCode.
WRN_ParameterDisallowsNull
, "return true;").WithArguments("s").WithLocation(12, 17),
27599
Diagnostic(ErrorCode.
WRN_ParameterDisallowsNull
, "return false;").WithArguments("s").WithLocation(14, 17),
27602
Diagnostic(ErrorCode.
WRN_ParameterDisallowsNull
, "}").WithArguments("s").WithLocation(20, 5)
30827
Diagnostic(ErrorCode.
WRN_ParameterDisallowsNull
, "}").WithArguments("pOut").WithLocation(8, 5));
36955
Diagnostic(ErrorCode.
WRN_ParameterDisallowsNull
, "}").WithArguments("args").WithLocation(5, 61),
37527
Diagnostic(ErrorCode.
WRN_ParameterDisallowsNull
, "}").WithArguments("x").WithLocation(26, 5),
37539
Diagnostic(ErrorCode.
WRN_ParameterDisallowsNull
, "}").WithArguments("x").WithLocation(42, 5)
37598
Diagnostic(ErrorCode.
WRN_ParameterDisallowsNull
, "}", isSuppressed: false).WithArguments("x").WithLocation(24, 5),
37604
Diagnostic(ErrorCode.
WRN_ParameterDisallowsNull
, "return;", isSuppressed: false).WithArguments("x").WithLocation(39, 9)
37659
Diagnostic(ErrorCode.
WRN_ParameterDisallowsNull
, "}").WithArguments("x").WithLocation(23, 5),
37733
Diagnostic(ErrorCode.
WRN_ParameterDisallowsNull
, "}").WithArguments("x").WithLocation(26, 5),
37754
Diagnostic(ErrorCode.
WRN_ParameterDisallowsNull
, "}").WithArguments("x").WithLocation(42, 5)
40522
Diagnostic(ErrorCode.
WRN_ParameterDisallowsNull
, "return true;").WithArguments("x").WithLocation(49, 13),
40525
Diagnostic(ErrorCode.
WRN_ParameterDisallowsNull
, "return false;").WithArguments("x").WithLocation(51, 9),
40629
Diagnostic(ErrorCode.
WRN_ParameterDisallowsNull
, "return true;").WithArguments("x").WithLocation(50, 21),
40632
Diagnostic(ErrorCode.
WRN_ParameterDisallowsNull
, "return false;").WithArguments("x").WithLocation(52, 17),
40658
Diagnostic(ErrorCode.
WRN_ParameterDisallowsNull
, "}").WithArguments("i").WithLocation(10, 5),
40661
Diagnostic(ErrorCode.
WRN_ParameterDisallowsNull
, "}").WithArguments("s").WithLocation(10, 5)
40702
Diagnostic(ErrorCode.
WRN_ParameterDisallowsNull
, "}").WithArguments("i").WithLocation(10, 130),
40705
Diagnostic(ErrorCode.
WRN_ParameterDisallowsNull
, "}").WithArguments("s").WithLocation(10, 130)
42803
Diagnostic(ErrorCode.
WRN_ParameterDisallowsNull
, "}").WithArguments("t7").WithLocation(48, 5),
46115
Diagnostic(ErrorCode.
WRN_ParameterDisallowsNull
, "}").WithArguments("t2").WithLocation(4, 57),
46118
Diagnostic(ErrorCode.
WRN_ParameterDisallowsNull
, "}").WithArguments("t2").WithLocation(8, 76),
46168
Diagnostic(ErrorCode.
WRN_ParameterDisallowsNull
, "}").WithArguments("t").WithLocation(4, 55),
46171
Diagnostic(ErrorCode.
WRN_ParameterDisallowsNull
, "}").WithArguments("t").WithLocation(5, 56),
145372
Diagnostic(ErrorCode.
WRN_ParameterDisallowsNull
, "}").WithArguments("y").WithLocation(9, 70),
145375
Diagnostic(ErrorCode.
WRN_ParameterDisallowsNull
, "}").WithArguments("y").WithLocation(14, 70));
145419
Diagnostic(ErrorCode.
WRN_ParameterDisallowsNull
, "}").WithArguments("y").WithLocation(9, 74),
145422
Diagnostic(ErrorCode.
WRN_ParameterDisallowsNull
, "}").WithArguments("y").WithLocation(14, 74));
145444
Diagnostic(ErrorCode.
WRN_ParameterDisallowsNull
, "}").WithArguments("y").WithLocation(5, 64),
145450
Diagnostic(ErrorCode.
WRN_ParameterDisallowsNull
, "}").WithArguments("y").WithLocation(6, 63),
145453
Diagnostic(ErrorCode.
WRN_ParameterDisallowsNull
, "}").WithArguments("y").WithLocation(7, 55),
145456
Diagnostic(ErrorCode.
WRN_ParameterDisallowsNull
, "}").WithArguments("y").WithLocation(9, 58)
145501
Diagnostic(ErrorCode.
WRN_ParameterDisallowsNull
, "}").WithArguments("y").WithLocation(9, 74),
145504
Diagnostic(ErrorCode.
WRN_ParameterDisallowsNull
, "}").WithArguments("y").WithLocation(14, 74));
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (1)
Diagnostics\DiagnosticTest.cs (1)
377
case ErrorCode.
WRN_ParameterDisallowsNull
: