24 references to ERR_DuplicateNamedArgument
Microsoft.CodeAnalysis.CSharp (2)
Binder\Semantics\OverloadResolution\OverloadResolutionResult.cs (1)
816
diagnostics.Add(new CSDiagnosticInfo(ErrorCode.
ERR_DuplicateNamedArgument
, name), location);
Errors\ErrorFacts.cs (1)
1319
case ErrorCode.
ERR_DuplicateNamedArgument
:
Microsoft.CodeAnalysis.CSharp.IOperation.UnitTests (9)
IOperation\IOperationTests_InvalidExpression.cs (9)
602
Diagnostic(ErrorCode.
ERR_DuplicateNamedArgument
, "format").WithArguments("format").WithLocation(6, 45)
634
Diagnostic(ErrorCode.
ERR_DuplicateNamedArgument
, "a").WithArguments("a").WithLocation(10, 27)
664
Diagnostic(ErrorCode.
ERR_DuplicateNamedArgument
, "a").WithArguments("a").WithLocation(7, 32)
698
Diagnostic(ErrorCode.
ERR_DuplicateNamedArgument
, "a").WithArguments("a").WithLocation(11, 43)
732
Diagnostic(ErrorCode.
ERR_DuplicateNamedArgument
, "a").WithArguments("a").WithLocation(11, 30)
764
Diagnostic(ErrorCode.
ERR_DuplicateNamedArgument
, "a").WithArguments("a").WithLocation(10, 33)
794
Diagnostic(ErrorCode.
ERR_DuplicateNamedArgument
, "a").WithArguments("a").WithLocation(7, 38)
828
Diagnostic(ErrorCode.
ERR_DuplicateNamedArgument
, "a").WithArguments("a").WithLocation(11, 49)
862
Diagnostic(ErrorCode.
ERR_DuplicateNamedArgument
, "a").WithArguments("a").WithLocation(11, 36)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (13)
Semantics\BindingTests.cs (1)
3674
Diagnostic(ErrorCode.
ERR_DuplicateNamedArgument
, "arg2").WithArguments("arg2").WithLocation(10, 34));
Semantics\NonTrailingNamedArgumentsTests.cs (1)
528
Diagnostic(ErrorCode.
ERR_DuplicateNamedArgument
, "x").WithArguments("x").WithLocation(9, 17)
Semantics\NullableReferenceTypesTests.cs (10)
19159
Diagnostic(ErrorCode.
ERR_DuplicateNamedArgument
, "x").WithArguments("x").WithLocation(6, 17),
19162
Diagnostic(ErrorCode.
ERR_DuplicateNamedArgument
, "x").WithArguments("x").WithLocation(7, 17),
19165
Diagnostic(ErrorCode.
ERR_DuplicateNamedArgument
, "x").WithArguments("x").WithLocation(8, 17),
19168
Diagnostic(ErrorCode.
ERR_DuplicateNamedArgument
, "x").WithArguments("x").WithLocation(9, 17),
19171
Diagnostic(ErrorCode.
ERR_DuplicateNamedArgument
, "x").WithArguments("x").WithLocation(10, 23),
19174
Diagnostic(ErrorCode.
ERR_DuplicateNamedArgument
, "x").WithArguments("x").WithLocation(11, 23),
19183
Diagnostic(ErrorCode.
ERR_DuplicateNamedArgument
, "y").WithArguments("y").WithLocation(15, 20),
19186
Diagnostic(ErrorCode.
ERR_DuplicateNamedArgument
, "y").WithArguments("y").WithLocation(16, 20),
19189
Diagnostic(ErrorCode.
ERR_DuplicateNamedArgument
, "y").WithArguments("y").WithLocation(17, 17),
19192
Diagnostic(ErrorCode.
ERR_DuplicateNamedArgument
, "y").WithArguments("y").WithLocation(18, 17));
Semantics\SemanticErrorTests.cs (1)
16750
Diagnostic(ErrorCode.
ERR_DuplicateNamedArgument
, "Name").WithArguments("Name").WithLocation(6, 33));