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)
6504
Diagnostic(ErrorCode.
WRN_OptionalParamValueMismatch
, "x").WithArguments("1", "2", "1").WithLocation(7, 24));
16172
Diagnostic(ErrorCode.
WRN_OptionalParamValueMismatch
, "x").WithArguments("1", "1000", "1").WithLocation(8, 20));
16218
Diagnostic(ErrorCode.
WRN_OptionalParamValueMismatch
, "x").WithArguments("1", "1000", "<missing>").WithLocation(8, 20));
17157
Diagnostic(ErrorCode.
WRN_OptionalParamValueMismatch
, "_").WithArguments("2", "3", "<missing>").WithLocation(8, 27),
17182
Diagnostic(ErrorCode.
WRN_OptionalParamValueMismatch
, "_").WithArguments("2", "3", "7").WithLocation(8, 27));
17245
Diagnostic(ErrorCode.
WRN_OptionalParamValueMismatch
, "i").WithArguments("1", "4", "3").WithLocation(9, 18));
17268
Diagnostic(ErrorCode.
WRN_OptionalParamValueMismatch
, "i").WithArguments("1", "4", "<missing>").WithLocation(9, 18),
19718
Diagnostic(ErrorCode.
WRN_OptionalParamValueMismatch
, "x").WithArguments("1", "1", "<missing>").WithLocation(6, 29),
19721
Diagnostic(ErrorCode.
WRN_OptionalParamValueMismatch
, "x").WithArguments("1", "2", "1").WithLocation(8, 31),
19759
Diagnostic(ErrorCode.
WRN_OptionalParamValueMismatch
, "x").WithArguments("1", "1", "<missing>").WithLocation(6, 37),
19762
Diagnostic(ErrorCode.
WRN_OptionalParamValueMismatch
, "x").WithArguments("1", "2", "1").WithLocation(8, 39),
19800
Diagnostic(ErrorCode.
WRN_OptionalParamValueMismatch
, "x").WithArguments("1", "1", "<missing>").WithLocation(6, 35),
19803
Diagnostic(ErrorCode.
WRN_OptionalParamValueMismatch
, "x").WithArguments("1", "2", "1").WithLocation(8, 37),
19837
Diagnostic(ErrorCode.
WRN_OptionalParamValueMismatch
, "x").WithArguments("1", "1", "<missing>").WithLocation(1, 16),
19840
Diagnostic(ErrorCode.
WRN_OptionalParamValueMismatch
, "x").WithArguments("1", "2", "1").WithLocation(3, 18),
19858
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
: