30 references to ERR_DuplicateParamName
Microsoft.CodeAnalysis.CSharp (4)
Binder\Binder_Lambda.cs (1)
416
diagnostics.Add(ErrorCode.
ERR_DuplicateParamName
, lambda.ParameterLocation(i), name);
Binder\Binder_NameConflicts.cs (1)
80
diagnostics.Add(ErrorCode.
ERR_DuplicateParamName
, GetLocation(p), name);
Errors\ErrorFacts.cs (2)
635
case ErrorCode.
ERR_DuplicateParamName
:
2342
case ErrorCode.
ERR_DuplicateParamName
:
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (18)
Semantics\LambdaDiscardParametersTests.cs (5)
90
Diagnostic(ErrorCode.
ERR_DuplicateParamName
, "_").WithArguments("_").WithLocation(6, 33)
106
Diagnostic(ErrorCode.
ERR_DuplicateParamName
, "_").WithArguments("_").WithLocation(4, 35)
183
Diagnostic(ErrorCode.
ERR_DuplicateParamName
, "_").WithArguments("_").WithLocation(7, 31)
202
Diagnostic(ErrorCode.
ERR_DuplicateParamName
, @"\u005f").WithArguments("_").WithLocation(6, 55),
224
Diagnostic(ErrorCode.
ERR_DuplicateParamName
, "@_").WithArguments("_").WithLocation(6, 51),
Semantics\LocalFunctionTests.cs (1)
5189
Diagnostic(ErrorCode.
ERR_DuplicateParamName
, "x").WithArguments("x").WithLocation(8, 41),
Semantics\NameCollisionTests.cs (6)
897
Diagnostic(ErrorCode.
ERR_DuplicateParamName
, "name2").WithArguments("name2").WithLocation(5, 57),
903
Diagnostic(ErrorCode.
ERR_DuplicateParamName
, "name4").WithArguments("name4").WithLocation(9, 70),
912
Diagnostic(ErrorCode.
ERR_DuplicateParamName
, "name2").WithArguments("name2").WithLocation(5, 57),
915
Diagnostic(ErrorCode.
ERR_DuplicateParamName
, "name4").WithArguments("name4").WithLocation(9, 70)
937
Diagnostic(ErrorCode.
ERR_DuplicateParamName
, "x").WithArguments("x").WithLocation(7, 28),
940
Diagnostic(ErrorCode.
ERR_DuplicateParamName
, "x").WithArguments("x").WithLocation(8, 20)
Semantics\NullableReferenceTypesTests.cs (2)
4232
Diagnostic(ErrorCode.
ERR_DuplicateParamName
, "t").WithArguments("t").WithLocation(10, 32)
31383
Diagnostic(ErrorCode.
ERR_DuplicateParamName
, "p").WithArguments("p").WithLocation(4, 73),
Semantics\PrimaryConstructorTests.cs (1)
9028
Diagnostic(ErrorCode.
ERR_DuplicateParamName
, "p1").WithArguments("p1").WithLocation(2, 22),
Semantics\RecordStructTests.cs (1)
1982
Diagnostic(ErrorCode.
ERR_DuplicateParamName
, "X").WithArguments("X").WithLocation(2, 28),
Semantics\RecordTests.cs (2)
1006
Diagnostic(ErrorCode.
ERR_DuplicateParamName
, "X").WithArguments("X").WithLocation(2, 21),
1058
Diagnostic(ErrorCode.
ERR_DuplicateParamName
, "X").WithArguments("X").WithLocation(2, 27),
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (8)
DocumentationComments\CrefTests.cs (4)
3901
Diagnostic(ErrorCode.
ERR_DuplicateParamName
, "x").WithArguments("x"),
3904
Diagnostic(ErrorCode.
ERR_DuplicateParamName
, "x").WithArguments("x"), // NOTE: double-reported in dev11
3907
Diagnostic(ErrorCode.
ERR_DuplicateParamName
, "x").WithArguments("x"),
3910
Diagnostic(ErrorCode.
ERR_DuplicateParamName
, "x").WithArguments("x"), // NOTE: double-reported in dev11
Symbols\SymbolErrorTests.cs (4)
1457
Diagnostic(ErrorCode.
ERR_DuplicateParamName
, "b").WithArguments("b").WithLocation(5, 31),
1460
Diagnostic(ErrorCode.
ERR_DuplicateParamName
, "p").WithArguments("p").WithLocation(10, 45),
1463
Diagnostic(ErrorCode.
ERR_DuplicateParamName
, "p").WithArguments("p").WithLocation(10, 59),
1466
Diagnostic(ErrorCode.
ERR_DuplicateParamName
, "p").WithArguments("p").WithLocation(10, 77),