24 references to ERR_DuplicateNamedArgument
Microsoft.CodeAnalysis.CSharp (2)
Binder\Semantics\OverloadResolution\OverloadResolutionResult.cs (1)
837
diagnostics.Add(new CSDiagnosticInfo(ErrorCode.
ERR_DuplicateNamedArgument
, name), location);
Errors\ErrorFacts.cs (1)
1380
or ErrorCode.
ERR_DuplicateNamedArgument
Microsoft.CodeAnalysis.CSharp.IOperation.UnitTests (9)
IOperation\IOperationTests_InvalidExpression.cs (9)
600
Diagnostic(ErrorCode.
ERR_DuplicateNamedArgument
, "format").WithArguments("format").WithLocation(6, 45)
632
Diagnostic(ErrorCode.
ERR_DuplicateNamedArgument
, "a").WithArguments("a").WithLocation(10, 27)
662
Diagnostic(ErrorCode.
ERR_DuplicateNamedArgument
, "a").WithArguments("a").WithLocation(7, 32)
696
Diagnostic(ErrorCode.
ERR_DuplicateNamedArgument
, "a").WithArguments("a").WithLocation(11, 43)
730
Diagnostic(ErrorCode.
ERR_DuplicateNamedArgument
, "a").WithArguments("a").WithLocation(11, 30)
762
Diagnostic(ErrorCode.
ERR_DuplicateNamedArgument
, "a").WithArguments("a").WithLocation(10, 33)
792
Diagnostic(ErrorCode.
ERR_DuplicateNamedArgument
, "a").WithArguments("a").WithLocation(7, 38)
826
Diagnostic(ErrorCode.
ERR_DuplicateNamedArgument
, "a").WithArguments("a").WithLocation(11, 49)
860
Diagnostic(ErrorCode.
ERR_DuplicateNamedArgument
, "a").WithArguments("a").WithLocation(11, 36)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (13)
Semantics\BindingTests.cs (1)
3934
Diagnostic(ErrorCode.
ERR_DuplicateNamedArgument
, "arg2").WithArguments("arg2").WithLocation(10, 34));
Semantics\NonTrailingNamedArgumentsTests.cs (1)
529
Diagnostic(ErrorCode.
ERR_DuplicateNamedArgument
, "x").WithArguments("x").WithLocation(9, 17)
Semantics\NullableReferenceTypesTests.cs (10)
19198
Diagnostic(ErrorCode.
ERR_DuplicateNamedArgument
, "x").WithArguments("x").WithLocation(6, 17),
19201
Diagnostic(ErrorCode.
ERR_DuplicateNamedArgument
, "x").WithArguments("x").WithLocation(7, 17),
19204
Diagnostic(ErrorCode.
ERR_DuplicateNamedArgument
, "x").WithArguments("x").WithLocation(8, 17),
19207
Diagnostic(ErrorCode.
ERR_DuplicateNamedArgument
, "x").WithArguments("x").WithLocation(9, 17),
19210
Diagnostic(ErrorCode.
ERR_DuplicateNamedArgument
, "x").WithArguments("x").WithLocation(10, 23),
19213
Diagnostic(ErrorCode.
ERR_DuplicateNamedArgument
, "x").WithArguments("x").WithLocation(11, 23),
19222
Diagnostic(ErrorCode.
ERR_DuplicateNamedArgument
, "y").WithArguments("y").WithLocation(15, 20),
19225
Diagnostic(ErrorCode.
ERR_DuplicateNamedArgument
, "y").WithArguments("y").WithLocation(16, 20),
19228
Diagnostic(ErrorCode.
ERR_DuplicateNamedArgument
, "y").WithArguments("y").WithLocation(17, 17),
19231
Diagnostic(ErrorCode.
ERR_DuplicateNamedArgument
, "y").WithArguments("y").WithLocation(18, 17));
Semantics\SemanticErrorTests.cs (1)
16858
Diagnostic(ErrorCode.
ERR_DuplicateNamedArgument
, "Name").WithArguments("Name").WithLocation(6, 33));