25 references to WRN_OptionalParamValueMismatch
Microsoft.CodeAnalysis.CSharp (4)
Binder\Binder_Conversions.cs (1)
2388
Error(diagnostics, ErrorCode.
WRN_OptionalParamValueMismatch
, lambdaParameter.GetFirstLocation(), p + 1, lambdaParamDefault, delegateParamDefault ?? ((object)MessageID.IDS_Missing.Localize()));
Errors\ErrorFacts.cs (2)
542
case ErrorCode.
WRN_OptionalParamValueMismatch
:
2342
or ErrorCode.
WRN_OptionalParamValueMismatch
Generated\ErrorFacts.Generated.cs (1)
313
case ErrorCode.
WRN_OptionalParamValueMismatch
:
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (20)
Semantics\DelegateTypeTests.cs (16)
6478
Diagnostic(ErrorCode.
WRN_OptionalParamValueMismatch
, "x").WithArguments("1", "2", "1").WithLocation(7, 24));
16146
Diagnostic(ErrorCode.
WRN_OptionalParamValueMismatch
, "x").WithArguments("1", "1000", "1").WithLocation(8, 20));
16192
Diagnostic(ErrorCode.
WRN_OptionalParamValueMismatch
, "x").WithArguments("1", "1000", "<missing>").WithLocation(8, 20));
17131
Diagnostic(ErrorCode.
WRN_OptionalParamValueMismatch
, "_").WithArguments("2", "3", "<missing>").WithLocation(8, 27),
17156
Diagnostic(ErrorCode.
WRN_OptionalParamValueMismatch
, "_").WithArguments("2", "3", "7").WithLocation(8, 27));
17219
Diagnostic(ErrorCode.
WRN_OptionalParamValueMismatch
, "i").WithArguments("1", "4", "3").WithLocation(9, 18));
17242
Diagnostic(ErrorCode.
WRN_OptionalParamValueMismatch
, "i").WithArguments("1", "4", "<missing>").WithLocation(9, 18),
19692
Diagnostic(ErrorCode.
WRN_OptionalParamValueMismatch
, "x").WithArguments("1", "1", "<missing>").WithLocation(6, 29),
19695
Diagnostic(ErrorCode.
WRN_OptionalParamValueMismatch
, "x").WithArguments("1", "2", "1").WithLocation(8, 31),
19733
Diagnostic(ErrorCode.
WRN_OptionalParamValueMismatch
, "x").WithArguments("1", "1", "<missing>").WithLocation(6, 37),
19736
Diagnostic(ErrorCode.
WRN_OptionalParamValueMismatch
, "x").WithArguments("1", "2", "1").WithLocation(8, 39),
19774
Diagnostic(ErrorCode.
WRN_OptionalParamValueMismatch
, "x").WithArguments("1", "1", "<missing>").WithLocation(6, 35),
19777
Diagnostic(ErrorCode.
WRN_OptionalParamValueMismatch
, "x").WithArguments("1", "2", "1").WithLocation(8, 37),
19811
Diagnostic(ErrorCode.
WRN_OptionalParamValueMismatch
, "x").WithArguments("1", "1", "<missing>").WithLocation(1, 16),
19814
Diagnostic(ErrorCode.
WRN_OptionalParamValueMismatch
, "x").WithArguments("1", "2", "1").WithLocation(3, 18),
19832
Diagnostic(ErrorCode.
WRN_OptionalParamValueMismatch
, "b").WithArguments("2", "2", "<missing>").WithLocation(1, 20),
Semantics\LambdaTests.cs (2)
4867
Diagnostic(ErrorCode.
WRN_OptionalParamValueMismatch
, "i").WithArguments("1", "2", "<missing>").WithLocation(7, 68));
7907
Diagnostic(ErrorCode.
WRN_OptionalParamValueMismatch
, "s").WithArguments("1", @"""0123456...""", @"""abc""").WithLocation(7, 27));
Semantics\SimpleLambdaParametersWithModifiersTests.cs (2)
316
Diagnostic(ErrorCode.
WRN_OptionalParamValueMismatch
, "x").WithArguments("1", "null", "<missing>").WithLocation(8, 23));
410
Diagnostic(ErrorCode.
WRN_OptionalParamValueMismatch
, "x").WithArguments("1", "1", "<missing>").WithLocation(7, 16));
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (1)
Diagnostics\DiagnosticTest.cs (1)
303
case ErrorCode.
WRN_OptionalParamValueMismatch
: