23 references to WRN_OptionalParamValueMismatch
Microsoft.CodeAnalysis.CSharp (4)
Binder\Binder_Conversions.cs (1)
839
Error(diagnostics, ErrorCode.
WRN_OptionalParamValueMismatch
, lambdaParameter.Locations[0], p + 1, lambdaParamDefault, delegateParamDefault ?? ((object)MessageID.IDS_Missing.Localize()));
Errors\ErrorFacts.cs (2)
529
case ErrorCode.
WRN_OptionalParamValueMismatch
:
2287
case ErrorCode.
WRN_OptionalParamValueMismatch
:
Generated\ErrorFacts.Generated.cs (1)
313
case ErrorCode.
WRN_OptionalParamValueMismatch
:
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (18)
Semantics\DelegateTypeTests.cs (16)
4620
Diagnostic(ErrorCode.
WRN_OptionalParamValueMismatch
, "x").WithArguments("1", "2", "1").WithLocation(7, 24));
12736
Diagnostic(ErrorCode.
WRN_OptionalParamValueMismatch
, "x").WithArguments("1", "1000", "1").WithLocation(8, 20));
12782
Diagnostic(ErrorCode.
WRN_OptionalParamValueMismatch
, "x").WithArguments("1", "1000", "<missing>").WithLocation(8, 20));
13722
Diagnostic(ErrorCode.
WRN_OptionalParamValueMismatch
, "_").WithArguments("2", "3", "<missing>").WithLocation(8, 27),
13747
Diagnostic(ErrorCode.
WRN_OptionalParamValueMismatch
, "_").WithArguments("2", "3", "7").WithLocation(8, 27));
13810
Diagnostic(ErrorCode.
WRN_OptionalParamValueMismatch
, "i").WithArguments("1", "4", "3").WithLocation(9, 18));
13833
Diagnostic(ErrorCode.
WRN_OptionalParamValueMismatch
, "i").WithArguments("1", "4", "<missing>").WithLocation(9, 18),
16283
Diagnostic(ErrorCode.
WRN_OptionalParamValueMismatch
, "x").WithArguments("1", "1", "<missing>").WithLocation(6, 29),
16286
Diagnostic(ErrorCode.
WRN_OptionalParamValueMismatch
, "x").WithArguments("1", "2", "1").WithLocation(8, 31),
16324
Diagnostic(ErrorCode.
WRN_OptionalParamValueMismatch
, "x").WithArguments("1", "1", "<missing>").WithLocation(6, 37),
16327
Diagnostic(ErrorCode.
WRN_OptionalParamValueMismatch
, "x").WithArguments("1", "2", "1").WithLocation(8, 39),
16365
Diagnostic(ErrorCode.
WRN_OptionalParamValueMismatch
, "x").WithArguments("1", "1", "<missing>").WithLocation(6, 35),
16368
Diagnostic(ErrorCode.
WRN_OptionalParamValueMismatch
, "x").WithArguments("1", "2", "1").WithLocation(8, 37),
16402
Diagnostic(ErrorCode.
WRN_OptionalParamValueMismatch
, "x").WithArguments("1", "1", "<missing>").WithLocation(1, 16),
16405
Diagnostic(ErrorCode.
WRN_OptionalParamValueMismatch
, "x").WithArguments("1", "2", "1").WithLocation(3, 18),
16423
Diagnostic(ErrorCode.
WRN_OptionalParamValueMismatch
, "b").WithArguments("2", "2", "<missing>").WithLocation(1, 20),
Semantics\LambdaTests.cs (2)
4852
Diagnostic(ErrorCode.
WRN_OptionalParamValueMismatch
, "i").WithArguments("1", "2", "<missing>").WithLocation(7, 68));
7881
Diagnostic(ErrorCode.
WRN_OptionalParamValueMismatch
, "s").WithArguments("1", @"""0123456...""", @"""abc""").WithLocation(7, 27));
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (1)
Diagnostics\DiagnosticTest.cs (1)
303
case ErrorCode.
WRN_OptionalParamValueMismatch
: