51 references to WRN_ParameterDisallowsNull
Microsoft.CodeAnalysis.CSharp (5)
Errors\ErrorFacts.cs (3)
80
nullableWarnings.Add(GetId(ErrorCode.
WRN_ParameterDisallowsNull
));
492
case ErrorCode.
WRN_ParameterDisallowsNull
:
2049
or ErrorCode.
WRN_ParameterDisallowsNull
FlowAnalysis\NullableWalker.cs (1)
1332
Diagnostics.Add(ErrorCode.
WRN_ParameterDisallowsNull
, location, parameter.Name);
Generated\ErrorFacts.Generated.cs (1)
243
case ErrorCode.
WRN_ParameterDisallowsNull
:
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (6)
Semantics\ExtensionTests.cs (6)
47718
Diagnostic(ErrorCode.
WRN_ParameterDisallowsNull
, "}").WithArguments("o").WithLocation(17, 9),
47721
Diagnostic(ErrorCode.
WRN_ParameterDisallowsNull
, "}").WithArguments("o").WithLocation(22, 5));
47761
Diagnostic(ErrorCode.
WRN_ParameterDisallowsNull
, "}").WithArguments("o").WithLocation(17, 9),
47764
Diagnostic(ErrorCode.
WRN_ParameterDisallowsNull
, "}").WithArguments("o").WithLocation(27, 5));
47805
Diagnostic(ErrorCode.
WRN_ParameterDisallowsNull
, "return;").WithArguments("o").WithLocation(18, 17),
47808
Diagnostic(ErrorCode.
WRN_ParameterDisallowsNull
, "return;").WithArguments("o").WithLocation(27, 9));
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (39)
Semantics\NullableReferenceTypesTests.cs (39)
29043
Diagnostic(ErrorCode.
WRN_ParameterDisallowsNull
, "}").WithArguments("s").WithLocation(12, 5)
29476
Diagnostic(ErrorCode.
WRN_ParameterDisallowsNull
, "return NonConstantBool();").WithArguments("s").WithLocation(8, 9),
29479
Diagnostic(ErrorCode.
WRN_ParameterDisallowsNull
, "return NonConstantBool();").WithArguments("s").WithLocation(13, 9),
29482
Diagnostic(ErrorCode.
WRN_ParameterDisallowsNull
, "return NonConstantBool();").WithArguments("s").WithLocation(18, 9)
29535
Diagnostic(ErrorCode.
WRN_ParameterDisallowsNull
, "return true;").WithArguments("s").WithLocation(12, 17),
29538
Diagnostic(ErrorCode.
WRN_ParameterDisallowsNull
, "return false;").WithArguments("s").WithLocation(14, 17),
29541
Diagnostic(ErrorCode.
WRN_ParameterDisallowsNull
, "}").WithArguments("s").WithLocation(20, 5)
32766
Diagnostic(ErrorCode.
WRN_ParameterDisallowsNull
, "}").WithArguments("pOut").WithLocation(8, 5));
39022
Diagnostic(ErrorCode.
WRN_ParameterDisallowsNull
, "}").WithArguments("args").WithLocation(5, 61),
39594
Diagnostic(ErrorCode.
WRN_ParameterDisallowsNull
, "}").WithArguments("x").WithLocation(26, 5),
39606
Diagnostic(ErrorCode.
WRN_ParameterDisallowsNull
, "}").WithArguments("x").WithLocation(42, 5)
39665
Diagnostic(ErrorCode.
WRN_ParameterDisallowsNull
, "}", isSuppressed: false).WithArguments("x").WithLocation(24, 5),
39671
Diagnostic(ErrorCode.
WRN_ParameterDisallowsNull
, "return;", isSuppressed: false).WithArguments("x").WithLocation(39, 9)
39726
Diagnostic(ErrorCode.
WRN_ParameterDisallowsNull
, "}").WithArguments("x").WithLocation(23, 5),
39800
Diagnostic(ErrorCode.
WRN_ParameterDisallowsNull
, "}").WithArguments("x").WithLocation(26, 5),
39821
Diagnostic(ErrorCode.
WRN_ParameterDisallowsNull
, "}").WithArguments("x").WithLocation(42, 5)
42589
Diagnostic(ErrorCode.
WRN_ParameterDisallowsNull
, "return true;").WithArguments("x").WithLocation(49, 13),
42592
Diagnostic(ErrorCode.
WRN_ParameterDisallowsNull
, "return false;").WithArguments("x").WithLocation(51, 9),
42696
Diagnostic(ErrorCode.
WRN_ParameterDisallowsNull
, "return true;").WithArguments("x").WithLocation(50, 21),
42699
Diagnostic(ErrorCode.
WRN_ParameterDisallowsNull
, "return false;").WithArguments("x").WithLocation(52, 17),
42725
Diagnostic(ErrorCode.
WRN_ParameterDisallowsNull
, "}").WithArguments("i").WithLocation(10, 5),
42728
Diagnostic(ErrorCode.
WRN_ParameterDisallowsNull
, "}").WithArguments("s").WithLocation(10, 5)
42769
Diagnostic(ErrorCode.
WRN_ParameterDisallowsNull
, "}").WithArguments("i").WithLocation(10, 130),
42772
Diagnostic(ErrorCode.
WRN_ParameterDisallowsNull
, "}").WithArguments("s").WithLocation(10, 130)
44870
Diagnostic(ErrorCode.
WRN_ParameterDisallowsNull
, "}").WithArguments("t7").WithLocation(48, 5),
48237
Diagnostic(ErrorCode.
WRN_ParameterDisallowsNull
, "}").WithArguments("t2").WithLocation(4, 57),
48240
Diagnostic(ErrorCode.
WRN_ParameterDisallowsNull
, "}").WithArguments("t2").WithLocation(8, 76),
48290
Diagnostic(ErrorCode.
WRN_ParameterDisallowsNull
, "}").WithArguments("t").WithLocation(4, 55),
48293
Diagnostic(ErrorCode.
WRN_ParameterDisallowsNull
, "}").WithArguments("t").WithLocation(5, 56),
149855
Diagnostic(ErrorCode.
WRN_ParameterDisallowsNull
, "}").WithArguments("y").WithLocation(9, 70),
149858
Diagnostic(ErrorCode.
WRN_ParameterDisallowsNull
, "}").WithArguments("y").WithLocation(14, 70));
149902
Diagnostic(ErrorCode.
WRN_ParameterDisallowsNull
, "}").WithArguments("y").WithLocation(9, 74),
149905
Diagnostic(ErrorCode.
WRN_ParameterDisallowsNull
, "}").WithArguments("y").WithLocation(14, 74));
149927
Diagnostic(ErrorCode.
WRN_ParameterDisallowsNull
, "}").WithArguments("y").WithLocation(5, 64),
149933
Diagnostic(ErrorCode.
WRN_ParameterDisallowsNull
, "}").WithArguments("y").WithLocation(6, 63),
149936
Diagnostic(ErrorCode.
WRN_ParameterDisallowsNull
, "}").WithArguments("y").WithLocation(7, 55),
149939
Diagnostic(ErrorCode.
WRN_ParameterDisallowsNull
, "}").WithArguments("y").WithLocation(9, 58)
149984
Diagnostic(ErrorCode.
WRN_ParameterDisallowsNull
, "}").WithArguments("y").WithLocation(9, 74),
149987
Diagnostic(ErrorCode.
WRN_ParameterDisallowsNull
, "}").WithArguments("y").WithLocation(14, 74));
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (1)
Diagnostics\DiagnosticTest.cs (1)
399
case ErrorCode.
WRN_ParameterDisallowsNull
: