51 references to WRN_ParameterDisallowsNull
Microsoft.CodeAnalysis.CSharp (5)
Errors\ErrorFacts.cs (3)
80nullableWarnings.Add(GetId(ErrorCode.WRN_ParameterDisallowsNull)); 492case ErrorCode.WRN_ParameterDisallowsNull: 2050or ErrorCode.WRN_ParameterDisallowsNull
FlowAnalysis\NullableWalker.cs (1)
1332Diagnostics.Add(ErrorCode.WRN_ParameterDisallowsNull, location, parameter.Name);
Generated\ErrorFacts.Generated.cs (1)
243case ErrorCode.WRN_ParameterDisallowsNull:
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (6)
Semantics\ExtensionTests.cs (6)
47854Diagnostic(ErrorCode.WRN_ParameterDisallowsNull, "}").WithArguments("o").WithLocation(17, 9), 47857Diagnostic(ErrorCode.WRN_ParameterDisallowsNull, "}").WithArguments("o").WithLocation(22, 5)); 47897Diagnostic(ErrorCode.WRN_ParameterDisallowsNull, "}").WithArguments("o").WithLocation(17, 9), 47900Diagnostic(ErrorCode.WRN_ParameterDisallowsNull, "}").WithArguments("o").WithLocation(27, 5)); 47941Diagnostic(ErrorCode.WRN_ParameterDisallowsNull, "return;").WithArguments("o").WithLocation(18, 17), 47944Diagnostic(ErrorCode.WRN_ParameterDisallowsNull, "return;").WithArguments("o").WithLocation(27, 9));
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (39)
Semantics\NullableReferenceTypesTests.cs (39)
29071Diagnostic(ErrorCode.WRN_ParameterDisallowsNull, "}").WithArguments("s").WithLocation(12, 5) 29504Diagnostic(ErrorCode.WRN_ParameterDisallowsNull, "return NonConstantBool();").WithArguments("s").WithLocation(8, 9), 29507Diagnostic(ErrorCode.WRN_ParameterDisallowsNull, "return NonConstantBool();").WithArguments("s").WithLocation(13, 9), 29510Diagnostic(ErrorCode.WRN_ParameterDisallowsNull, "return NonConstantBool();").WithArguments("s").WithLocation(18, 9) 29563Diagnostic(ErrorCode.WRN_ParameterDisallowsNull, "return true;").WithArguments("s").WithLocation(12, 17), 29566Diagnostic(ErrorCode.WRN_ParameterDisallowsNull, "return false;").WithArguments("s").WithLocation(14, 17), 29569Diagnostic(ErrorCode.WRN_ParameterDisallowsNull, "}").WithArguments("s").WithLocation(20, 5) 32794Diagnostic(ErrorCode.WRN_ParameterDisallowsNull, "}").WithArguments("pOut").WithLocation(8, 5)); 39050Diagnostic(ErrorCode.WRN_ParameterDisallowsNull, "}").WithArguments("args").WithLocation(5, 61), 39622Diagnostic(ErrorCode.WRN_ParameterDisallowsNull, "}").WithArguments("x").WithLocation(26, 5), 39634Diagnostic(ErrorCode.WRN_ParameterDisallowsNull, "}").WithArguments("x").WithLocation(42, 5) 39693Diagnostic(ErrorCode.WRN_ParameterDisallowsNull, "}", isSuppressed: false).WithArguments("x").WithLocation(24, 5), 39699Diagnostic(ErrorCode.WRN_ParameterDisallowsNull, "return;", isSuppressed: false).WithArguments("x").WithLocation(39, 9) 39754Diagnostic(ErrorCode.WRN_ParameterDisallowsNull, "}").WithArguments("x").WithLocation(23, 5), 39828Diagnostic(ErrorCode.WRN_ParameterDisallowsNull, "}").WithArguments("x").WithLocation(26, 5), 39849Diagnostic(ErrorCode.WRN_ParameterDisallowsNull, "}").WithArguments("x").WithLocation(42, 5) 42617Diagnostic(ErrorCode.WRN_ParameterDisallowsNull, "return true;").WithArguments("x").WithLocation(49, 13), 42620Diagnostic(ErrorCode.WRN_ParameterDisallowsNull, "return false;").WithArguments("x").WithLocation(51, 9), 42724Diagnostic(ErrorCode.WRN_ParameterDisallowsNull, "return true;").WithArguments("x").WithLocation(50, 21), 42727Diagnostic(ErrorCode.WRN_ParameterDisallowsNull, "return false;").WithArguments("x").WithLocation(52, 17), 42753Diagnostic(ErrorCode.WRN_ParameterDisallowsNull, "}").WithArguments("i").WithLocation(10, 5), 42756Diagnostic(ErrorCode.WRN_ParameterDisallowsNull, "}").WithArguments("s").WithLocation(10, 5) 42797Diagnostic(ErrorCode.WRN_ParameterDisallowsNull, "}").WithArguments("i").WithLocation(10, 130), 42800Diagnostic(ErrorCode.WRN_ParameterDisallowsNull, "}").WithArguments("s").WithLocation(10, 130) 44898Diagnostic(ErrorCode.WRN_ParameterDisallowsNull, "}").WithArguments("t7").WithLocation(48, 5), 48265Diagnostic(ErrorCode.WRN_ParameterDisallowsNull, "}").WithArguments("t2").WithLocation(4, 57), 48268Diagnostic(ErrorCode.WRN_ParameterDisallowsNull, "}").WithArguments("t2").WithLocation(8, 76), 48318Diagnostic(ErrorCode.WRN_ParameterDisallowsNull, "}").WithArguments("t").WithLocation(4, 55), 48321Diagnostic(ErrorCode.WRN_ParameterDisallowsNull, "}").WithArguments("t").WithLocation(5, 56), 149917Diagnostic(ErrorCode.WRN_ParameterDisallowsNull, "}").WithArguments("y").WithLocation(9, 70), 149920Diagnostic(ErrorCode.WRN_ParameterDisallowsNull, "}").WithArguments("y").WithLocation(14, 70)); 149964Diagnostic(ErrorCode.WRN_ParameterDisallowsNull, "}").WithArguments("y").WithLocation(9, 74), 149967Diagnostic(ErrorCode.WRN_ParameterDisallowsNull, "}").WithArguments("y").WithLocation(14, 74)); 149989Diagnostic(ErrorCode.WRN_ParameterDisallowsNull, "}").WithArguments("y").WithLocation(5, 64), 149995Diagnostic(ErrorCode.WRN_ParameterDisallowsNull, "}").WithArguments("y").WithLocation(6, 63), 149998Diagnostic(ErrorCode.WRN_ParameterDisallowsNull, "}").WithArguments("y").WithLocation(7, 55), 150001Diagnostic(ErrorCode.WRN_ParameterDisallowsNull, "}").WithArguments("y").WithLocation(9, 58) 150046Diagnostic(ErrorCode.WRN_ParameterDisallowsNull, "}").WithArguments("y").WithLocation(9, 74), 150049Diagnostic(ErrorCode.WRN_ParameterDisallowsNull, "}").WithArguments("y").WithLocation(14, 74));
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (1)
Diagnostics\DiagnosticTest.cs (1)
387case ErrorCode.WRN_ParameterDisallowsNull: