25 references to WRN_OptionalParamValueMismatch
Microsoft.CodeAnalysis.CSharp (4)
Binder\Binder_Conversions.cs (1)
2370
Error(diagnostics, ErrorCode.
WRN_OptionalParamValueMismatch
, lambdaParameter.GetFirstLocation(), p + 1, lambdaParamDefault, delegateParamDefault ?? ((object)MessageID.IDS_Missing.Localize()));
Errors\ErrorFacts.cs (2)
541
case ErrorCode.
WRN_OptionalParamValueMismatch
:
2340
or ErrorCode.
WRN_OptionalParamValueMismatch
Generated\ErrorFacts.Generated.cs (1)
312
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),
19700
Diagnostic(ErrorCode.
WRN_OptionalParamValueMismatch
, "x").WithArguments("1", "1", "<missing>").WithLocation(6, 29),
19703
Diagnostic(ErrorCode.
WRN_OptionalParamValueMismatch
, "x").WithArguments("1", "2", "1").WithLocation(8, 31),
19741
Diagnostic(ErrorCode.
WRN_OptionalParamValueMismatch
, "x").WithArguments("1", "1", "<missing>").WithLocation(6, 37),
19744
Diagnostic(ErrorCode.
WRN_OptionalParamValueMismatch
, "x").WithArguments("1", "2", "1").WithLocation(8, 39),
19782
Diagnostic(ErrorCode.
WRN_OptionalParamValueMismatch
, "x").WithArguments("1", "1", "<missing>").WithLocation(6, 35),
19785
Diagnostic(ErrorCode.
WRN_OptionalParamValueMismatch
, "x").WithArguments("1", "2", "1").WithLocation(8, 37),
19819
Diagnostic(ErrorCode.
WRN_OptionalParamValueMismatch
, "x").WithArguments("1", "1", "<missing>").WithLocation(1, 16),
19822
Diagnostic(ErrorCode.
WRN_OptionalParamValueMismatch
, "x").WithArguments("1", "2", "1").WithLocation(3, 18),
19840
Diagnostic(ErrorCode.
WRN_OptionalParamValueMismatch
, "b").WithArguments("2", "2", "<missing>").WithLocation(1, 20),
Semantics\LambdaTests.cs (2)
4862
Diagnostic(ErrorCode.
WRN_OptionalParamValueMismatch
, "i").WithArguments("1", "2", "<missing>").WithLocation(7, 68));
7900
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
: