147 references to ERR_MemberAlreadyExists
Microsoft.CodeAnalysis.CSharp (3)
Errors\ErrorFacts.cs (1)
646
case ErrorCode.
ERR_MemberAlreadyExists
:
Symbols\Source\SourceMemberContainerSymbol.cs (2)
2074
diagnostics.Add(ErrorCode.
ERR_MemberAlreadyExists
, method1.Locations[0], methodName, this);
2167
diagnostics.Add(ErrorCode.
ERR_MemberAlreadyExists
, indexer.Locations[0], SyntaxFacts.GetText(SyntaxKind.ThisKeyword), this);
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (10)
CodeGen\CodeGenConstructorInitTests.cs (1)
1313
Diagnostic(ErrorCode.
ERR_MemberAlreadyExists
, "C").WithArguments("C", "C").WithLocation(7, 12)
CodeGen\CodeGenFunctionPointersTests.cs (4)
5970
Diagnostic(ErrorCode.
ERR_MemberAlreadyExists
, "M1").WithArguments("M1", "C<T>").WithLocation(5, 17),
5973
Diagnostic(ErrorCode.
ERR_MemberAlreadyExists
, "M2").WithArguments("M2", "C<T>").WithLocation(8, 17)
6102
Diagnostic(ErrorCode.
ERR_MemberAlreadyExists
, "M1").WithArguments("M1", "C<T>").WithLocation(5, 17),
6105
Diagnostic(ErrorCode.
ERR_MemberAlreadyExists
, "M2").WithArguments("M2", "C<T>").WithLocation(8, 17)
CodeGen\CodeGenTupleTest.cs (5)
5262
Diagnostic(ErrorCode.
ERR_MemberAlreadyExists
, "M").WithArguments("M", "C").WithLocation(9, 40)
20151
Diagnostic(ErrorCode.
ERR_MemberAlreadyExists
, "M1").WithArguments("M1", "C").WithLocation(5, 17),
20154
Diagnostic(ErrorCode.
ERR_MemberAlreadyExists
, "M2").WithArguments("M2", "C").WithLocation(8, 17),
20157
Diagnostic(ErrorCode.
ERR_MemberAlreadyExists
, "M3").WithArguments("M3", "C").WithLocation(11, 17),
20160
Diagnostic(ErrorCode.
ERR_MemberAlreadyExists
, "M4").WithArguments("M4", "C").WithLocation(14, 17)
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (2)
Attributes\AttributeTests.cs (2)
7364
Diagnostic(ErrorCode.
ERR_MemberAlreadyExists
, "Goo2").WithArguments("Goo2", "C").WithLocation(11, 17),
7423
Diagnostic(ErrorCode.
ERR_MemberAlreadyExists
, "Goo2").WithArguments("Goo2", "C").WithLocation(11, 17),
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (65)
Semantics\ArglistTests.cs (1)
1570
Diagnostic(ErrorCode.
ERR_MemberAlreadyExists
, "ArgListMethod").WithArguments("ArgListMethod", "SpecialCases").WithLocation(8, 17),
Semantics\BetterCandidates.cs (2)
270
Diagnostic(ErrorCode.
ERR_MemberAlreadyExists
, "MoveNext").WithArguments("MoveNext", "MyEnumerator").WithLocation(26, 24),
278
Diagnostic(ErrorCode.
ERR_MemberAlreadyExists
, "MoveNext").WithArguments("MoveNext", "MyEnumerator").WithLocation(26, 24)
Semantics\InheritanceBindingTests.cs (15)
1016
Diagnostic(ErrorCode.
ERR_MemberAlreadyExists
, "this").WithArguments("this", "Derived").WithLocation(10, 30),
1019
Diagnostic(ErrorCode.
ERR_MemberAlreadyExists
, "this").WithArguments("this", "Derived").WithLocation(11, 41),
1022
Diagnostic(ErrorCode.
ERR_MemberAlreadyExists
, "this").WithArguments("this", "Derived").WithLocation(12, 42),
1025
Diagnostic(ErrorCode.
ERR_MemberAlreadyExists
, "this").WithArguments("this", "Derived").WithLocation(13, 57),
1028
Diagnostic(ErrorCode.
ERR_MemberAlreadyExists
, "this").WithArguments("this", "Derived").WithLocation(14, 49),
1031
Diagnostic(ErrorCode.
ERR_MemberAlreadyExists
, "this").WithArguments("this", "Derived").WithLocation(15, 49),
1034
Diagnostic(ErrorCode.
ERR_MemberAlreadyExists
, "this").WithArguments("this", "Derived").WithLocation(16, 26));
1367
Diagnostic(ErrorCode.
ERR_MemberAlreadyExists
, "Method1").WithArguments("Method1", "Derived").WithLocation(13, 28),
1370
Diagnostic(ErrorCode.
ERR_MemberAlreadyExists
, "Method2").WithArguments("Method2", "Derived2").WithLocation(22, 28),
6287
Diagnostic(ErrorCode.
ERR_MemberAlreadyExists
, "Method").WithArguments("Method", "Derived"),
6458
Diagnostic(ErrorCode.
ERR_MemberAlreadyExists
, "Method").WithArguments("Method", "NS1.Derived"),
6461
Diagnostic(ErrorCode.
ERR_MemberAlreadyExists
, "Method").WithArguments("Method", "NS1.Base<T>"),
7097
Diagnostic(ErrorCode.
ERR_MemberAlreadyExists
, "Method").WithArguments("Method", "Class"),
7101
Diagnostic(ErrorCode.
ERR_MemberAlreadyExists
, "Method").WithArguments("Method", "Base"));
7152
Diagnostic(ErrorCode.
ERR_MemberAlreadyExists
, "Method").WithArguments("I2.Method", "Class"));
Semantics\NativeIntegerTests.cs (4)
3406
Diagnostic(ErrorCode.
ERR_MemberAlreadyExists
, "F").WithArguments("F", "I").WithLocation(5, 10),
3409
Diagnostic(ErrorCode.
ERR_MemberAlreadyExists
, "F").WithArguments("F", "C").WithLocation(11, 17));
3430
Diagnostic(ErrorCode.
ERR_MemberAlreadyExists
, "this").WithArguments("this", "I").WithLocation(4, 12),
3433
Diagnostic(ErrorCode.
ERR_MemberAlreadyExists
, "this").WithArguments("this", "C").WithLocation(9, 12));
Semantics\NullableReferenceTypesTests.cs (9)
18068
Diagnostic(ErrorCode.
ERR_MemberAlreadyExists
, "Test1").WithArguments("Test1", "A").WithLocation(5, 10),
18071
Diagnostic(ErrorCode.
ERR_MemberAlreadyExists
, "Test2").WithArguments("Test2", "A").WithLocation(8, 13)
72495
Diagnostic(ErrorCode.
ERR_MemberAlreadyExists
, "M").WithArguments("M", "C").WithLocation(8, 60),
135140
Diagnostic(ErrorCode.
ERR_MemberAlreadyExists
, "Goo").WithArguments("I.Goo", "C2").WithLocation(12, 15));
145685
Diagnostic(ErrorCode.
ERR_MemberAlreadyExists
, "F6").WithArguments("F6", "A").WithLocation(10, 17),
145697
Diagnostic(ErrorCode.
ERR_MemberAlreadyExists
, "F6").WithArguments("F6", "A").WithLocation(11, 17),
145745
Diagnostic(ErrorCode.
ERR_MemberAlreadyExists
, "F6").WithArguments("F6", "A").WithLocation(10, 17),
145754
Diagnostic(ErrorCode.
ERR_MemberAlreadyExists
, "F6").WithArguments("F6", "A").WithLocation(11, 17),
146092
Diagnostic(ErrorCode.
ERR_MemberAlreadyExists
, "F").WithArguments("F", "C").WithLocation(5, 17),
Semantics\PrimaryConstructorTests.cs (1)
584
Diagnostic(ErrorCode.
ERR_MemberAlreadyExists
, "C").WithArguments("C", "C").WithLocation(5, 12),
Semantics\RecordStructTests.cs (8)
1866
Diagnostic(ErrorCode.
ERR_MemberAlreadyExists
, "C").WithArguments("C", "C").WithLocation(5, 12),
4665
Diagnostic(ErrorCode.
ERR_MemberAlreadyExists
, "Equals").WithArguments("Equals", "A").WithLocation(4, 28)
4682
Diagnostic(ErrorCode.
ERR_MemberAlreadyExists
, "Equals").WithArguments("Equals", "A").WithLocation(4, 26)
4938
Diagnostic(ErrorCode.
ERR_MemberAlreadyExists
, "==").WithArguments("op_Equality", "A").WithLocation(4, 32)
4960
Diagnostic(ErrorCode.
ERR_MemberAlreadyExists
, "!=").WithArguments("op_Inequality", "A").WithLocation(4, 32)
4980
Diagnostic(ErrorCode.
ERR_MemberAlreadyExists
, "op_Equality").WithArguments("op_Equality", "A").WithLocation(4, 24)
5000
Diagnostic(ErrorCode.
ERR_MemberAlreadyExists
, "op_Inequality").WithArguments("op_Inequality", "A").WithLocation(4, 24)
11146
Diagnostic(ErrorCode.
ERR_MemberAlreadyExists
, "S2").WithArguments("S2", "S2").WithLocation(4, 12),
Semantics\RecordTests.cs (14)
360
Diagnostic(ErrorCode.
ERR_MemberAlreadyExists
, "R").WithArguments("R", "R").WithLocation(4, 12)
402
Diagnostic(ErrorCode.
ERR_MemberAlreadyExists
, "Derived").WithArguments("Derived", "Derived").WithLocation(8, 12),
420
Diagnostic(ErrorCode.
ERR_MemberAlreadyExists
, "R2").WithArguments("R2", "R2").WithLocation(15, 12),
426
Diagnostic(ErrorCode.
ERR_MemberAlreadyExists
, "R3").WithArguments("R3", "R3").WithLocation(20, 12)
935
Diagnostic(ErrorCode.
ERR_MemberAlreadyExists
, "C").WithArguments("C", "C").WithLocation(5, 12),
15730
Diagnostic(ErrorCode.
ERR_MemberAlreadyExists
, "Equals").WithArguments("Equals", "A").WithLocation(3, 33),
15750
Diagnostic(ErrorCode.
ERR_MemberAlreadyExists
, "Equals").WithArguments("Equals", "A").WithLocation(3, 33),
15802
Diagnostic(ErrorCode.
ERR_MemberAlreadyExists
, "Equals").WithArguments("Equals", "A").WithLocation(3, 35),
16365
Diagnostic(ErrorCode.
ERR_MemberAlreadyExists
, "Equals").WithArguments("Equals", "A").WithLocation(3, 28)
18012
Diagnostic(ErrorCode.
ERR_MemberAlreadyExists
, "Equals").WithArguments("Equals", "B").WithLocation(8, 26)
20536
Diagnostic(ErrorCode.
ERR_MemberAlreadyExists
, "==").WithArguments("op_Equality", "A").WithLocation(4, 32)
20559
Diagnostic(ErrorCode.
ERR_MemberAlreadyExists
, "!=").WithArguments("op_Inequality", "A").WithLocation(4, 32)
20580
Diagnostic(ErrorCode.
ERR_MemberAlreadyExists
, "op_Equality").WithArguments("op_Equality", "A").WithLocation(4, 24)
20601
Diagnostic(ErrorCode.
ERR_MemberAlreadyExists
, "op_Inequality").WithArguments("op_Inequality", "A").WithLocation(4, 24)
Semantics\RefFieldTests.cs (8)
16508
Diagnostic(ErrorCode.
ERR_MemberAlreadyExists
, "M1").WithArguments("M1", "C<T>").WithLocation(7, 17),
16511
Diagnostic(ErrorCode.
ERR_MemberAlreadyExists
, "M2").WithArguments("M2", "C<T>").WithLocation(8, 10),
16514
Diagnostic(ErrorCode.
ERR_MemberAlreadyExists
, "this").WithArguments("this", "C<T>").WithLocation(9, 12));
16539
Diagnostic(ErrorCode.
ERR_MemberAlreadyExists
, "M1").WithArguments("M1", "C").WithLocation(9, 17),
16542
Diagnostic(ErrorCode.
ERR_MemberAlreadyExists
, "M2").WithArguments("M2", "C").WithLocation(10, 17),
16545
Diagnostic(ErrorCode.
ERR_MemberAlreadyExists
, "M3").WithArguments("M3", "C").WithLocation(11, 17),
16548
Diagnostic(ErrorCode.
ERR_MemberAlreadyExists
, "M4").WithArguments("M4", "C").WithLocation(12, 17),
16551
Diagnostic(ErrorCode.
ERR_MemberAlreadyExists
, "M5").WithArguments("M5", "C").WithLocation(13, 17));
Semantics\UsingStatementTests.cs (3)
167
Diagnostic(ErrorCode.
ERR_MemberAlreadyExists
, "Dispose").WithArguments("Dispose", "S1").WithLocation(5, 17),
201
Diagnostic(ErrorCode.
ERR_MemberAlreadyExists
, "Dispose").WithArguments("Dispose", "S1").WithLocation(5, 17),
266
Diagnostic(ErrorCode.
ERR_MemberAlreadyExists
, "Dispose").WithArguments("Dispose", "S1").WithLocation(5, 19),
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (65)
Compilation\GetSemanticInfoTests.cs (4)
5828
Diagnostic(ErrorCode.
ERR_MemberAlreadyExists
, "C").WithArguments("C", "C").WithLocation(4, 12));
5832
Diagnostic(ErrorCode.
ERR_MemberAlreadyExists
, "C").WithArguments("C", "C").WithLocation(4, 12));
5872
Diagnostic(ErrorCode.
ERR_MemberAlreadyExists
, "C").WithArguments("C", "C").WithLocation(4, 5));
5876
Diagnostic(ErrorCode.
ERR_MemberAlreadyExists
, "C").WithArguments("C", "C").WithLocation(4, 5));
Symbols\CheckedUserDefinedOperatorsTests.cs (14)
149
Diagnostic(ErrorCode.
ERR_MemberAlreadyExists
, op).WithArguments(name, "C").WithLocation(5, 39)
160
Diagnostic(ErrorCode.
ERR_MemberAlreadyExists
, op).WithArguments(name, "C").WithLocation(5, 39)
319
Diagnostic(ErrorCode.
ERR_MemberAlreadyExists
, name).WithArguments(name, "C1").WithLocation(16, 15),
322
Diagnostic(ErrorCode.
ERR_MemberAlreadyExists
, op).WithArguments(name, "C2").WithLocation(23, 39),
331
Diagnostic(ErrorCode.
ERR_MemberAlreadyExists
, op).WithArguments(name, "C5").WithLocation(44, 39)
977
Diagnostic(ErrorCode.
ERR_MemberAlreadyExists
, op).WithArguments(name, "C").WithLocation(5, 38)
1013
Diagnostic(ErrorCode.
ERR_MemberAlreadyExists
, op).WithArguments(name, "C").WithLocation(6, 41)
1367
Diagnostic(ErrorCode.
ERR_MemberAlreadyExists
, op).WithArguments(name, "C").WithLocation(5, 39)
1489
Diagnostic(ErrorCode.
ERR_MemberAlreadyExists
, name).WithArguments(name, "C1").WithLocation(16, 15),
1492
Diagnostic(ErrorCode.
ERR_MemberAlreadyExists
, op).WithArguments(name, "C2").WithLocation(23, 39),
1501
Diagnostic(ErrorCode.
ERR_MemberAlreadyExists
, op).WithArguments(name, "C5").WithLocation(44, 39)
2222
Diagnostic(ErrorCode.
ERR_MemberAlreadyExists
, op).WithArguments(name, "C").WithLocation(5, 38)
2723
Diagnostic(ErrorCode.
ERR_MemberAlreadyExists
, "op_CheckedExplicit").WithArguments("op_CheckedExplicit", "C1").WithLocation(16, 15),
2726
Diagnostic(ErrorCode.
ERR_MemberAlreadyExists
, "int").WithArguments("op_CheckedExplicit", "C2").WithLocation(23, 45),
Symbols\CovariantReturnTests.cs (8)
4589
Diagnostic(ErrorCode.
ERR_MemberAlreadyExists
, "M").WithArguments("M", "Base").WithLocation(5, 25)
4634
Diagnostic(ErrorCode.
ERR_MemberAlreadyExists
, "M").WithArguments("M", "Base<T>").WithLocation(5, 25),
4685
Diagnostic(ErrorCode.
ERR_MemberAlreadyExists
, "M").WithArguments("M", "Container<T>.Base").WithLocation(7, 29)
4728
Diagnostic(ErrorCode.
ERR_MemberAlreadyExists
, "M").WithArguments("M", "Container<T>.Base").WithLocation(7, 29)
4791
Diagnostic(ErrorCode.
ERR_MemberAlreadyExists
, "M").WithArguments("M", "Container<T>.Base").WithLocation(8, 29)
4855
Diagnostic(ErrorCode.
ERR_MemberAlreadyExists
, "get_P").WithArguments("get_P", "Root").WithLocation(5, 24)
4912
Diagnostic(ErrorCode.
ERR_MemberAlreadyExists
, "get_P").WithArguments("get_P", "Root<T>").WithLocation(5, 24)
4976
Diagnostic(ErrorCode.
ERR_MemberAlreadyExists
, "M").WithArguments("M", "Root<T>").WithLocation(6, 25)
Symbols\DefaultInterfaceImplementationTests.cs (9)
11138
Diagnostic(ErrorCode.
ERR_MemberAlreadyExists
, "M6").WithArguments("M6", "I1").WithLocation(18, 17),
11141
Diagnostic(ErrorCode.
ERR_MemberAlreadyExists
, "M7").WithArguments("M7", "I1").WithLocation(19, 25),
11147
Diagnostic(ErrorCode.
ERR_MemberAlreadyExists
, "M8").WithArguments("M8", "I1").WithLocation(20, 25),
11153
Diagnostic(ErrorCode.
ERR_MemberAlreadyExists
, "M9").WithArguments("M9", "I1").WithLocation(21, 25),
11202
Diagnostic(ErrorCode.
ERR_MemberAlreadyExists
, "M6").WithArguments("M6", "I1").WithLocation(18, 17),
11205
Diagnostic(ErrorCode.
ERR_MemberAlreadyExists
, "M7").WithArguments("M7", "I1").WithLocation(19, 25),
11214
Diagnostic(ErrorCode.
ERR_MemberAlreadyExists
, "M8").WithArguments("M8", "I1").WithLocation(20, 25),
11220
Diagnostic(ErrorCode.
ERR_MemberAlreadyExists
, "M9").WithArguments("M9", "I1").WithLocation(21, 25),
11301
Diagnostic(ErrorCode.
ERR_MemberAlreadyExists
, "M5").WithArguments("M5", "I1").WithLocation(16, 27),
Symbols\DestructorTests.cs (1)
60
Diagnostic(ErrorCode.
ERR_MemberAlreadyExists
, "C").WithArguments("~C", "Q.C"));
Symbols\ExtendedPartialMethodsTests.cs (1)
1076
Diagnostic(ErrorCode.
ERR_MemberAlreadyExists
, "M1").WithArguments("M1", "C").WithLocation(9, 41));
Symbols\GenericConstraintTests.cs (1)
3271
Diagnostic(ErrorCode.
ERR_MemberAlreadyExists
, "M").WithArguments("M", "C").WithLocation(16, 18));
Symbols\Source\FileModifierTests.cs (2)
1011
Diagnostic(ErrorCode.
ERR_MemberAlreadyExists
, "M").WithArguments("M", "C").WithLocation(5, 24),
1273
Diagnostic(ErrorCode.
ERR_MemberAlreadyExists
, "M").WithArguments("M", "NS.C").WithLocation(5, 24),
Symbols\Source\RecordTests.cs (3)
77
Diagnostic(ErrorCode.
ERR_MemberAlreadyExists
, "C").WithArguments("C", "C").WithLocation(4, 12),
238
Diagnostic(ErrorCode.
ERR_MemberAlreadyExists
, "Equals").WithArguments("Equals", "C").WithLocation(5, 26)
257
Diagnostic(ErrorCode.
ERR_MemberAlreadyExists
, "Equals").WithArguments("Equals", "C").WithLocation(4, 16)
Symbols\StaticAbstractMembersInInterfacesTests.cs (4)
839
Diagnostic(ErrorCode.
ERR_MemberAlreadyExists
, "I2").WithArguments("I2", "I2").WithLocation(14, 20),
857
Diagnostic(ErrorCode.
ERR_MemberAlreadyExists
, "I3").WithArguments("I3", "I3").WithLocation(24, 27)
921
Diagnostic(ErrorCode.
ERR_MemberAlreadyExists
, "I2").WithArguments("I2", "I2").WithLocation(9, 20),
942
Diagnostic(ErrorCode.
ERR_MemberAlreadyExists
, "I3").WithArguments("I3", "I3").WithLocation(19, 27),
Symbols\SymbolErrorTests.cs (12)
1952
new ErrorDescription { Code = (int)ErrorCode.
ERR_MemberAlreadyExists
, Line = 4, Column = 24 });
1967
Diagnostic(ErrorCode.
ERR_MemberAlreadyExists
, "E").WithArguments("E", "S").WithLocation(4, 26),
1969
Diagnostic(ErrorCode.
ERR_MemberAlreadyExists
, "E").WithArguments("E", "S").WithLocation(5, 26));
1992
Diagnostic(ErrorCode.
ERR_MemberAlreadyExists
, "this").WithArguments("this", "C").WithLocation(5, 9),
1994
Diagnostic(ErrorCode.
ERR_MemberAlreadyExists
, "this").WithArguments("this", "C").WithLocation(6, 12),
1996
Diagnostic(ErrorCode.
ERR_MemberAlreadyExists
, "this").WithArguments("this", "I").WithLocation(11, 7),
1998
Diagnostic(ErrorCode.
ERR_MemberAlreadyExists
, "this").WithArguments("this", "I").WithLocation(12, 7));
2031
Diagnostic(ErrorCode.
ERR_MemberAlreadyExists
, "this").WithArguments("this", "C"));
2054
Diagnostic(ErrorCode.
ERR_MemberAlreadyExists
, "M").WithArguments("M", "C").WithLocation(4, 10),
2056
Diagnostic(ErrorCode.
ERR_MemberAlreadyExists
, "M").WithArguments("M", "C").WithLocation(5, 10),
2058
Diagnostic(ErrorCode.
ERR_MemberAlreadyExists
, "M").WithArguments("M", "I<T>").WithLocation(10, 10));
14092
Diagnostic(ErrorCode.
ERR_MemberAlreadyExists
, "Part").WithArguments("Part", "C").WithLocation(5, 18));
Symbols\UnsignedRightShiftTests.cs (2)
2185
Diagnostic(ErrorCode.
ERR_MemberAlreadyExists
, "op_UnsignedRightShift").WithArguments("op_UnsignedRightShift", "C1").WithLocation(9, 22),
2188
Diagnostic(ErrorCode.
ERR_MemberAlreadyExists
, ">>>").WithArguments("op_UnsignedRightShift", "C2").WithLocation(22, 31)
Symbols\UserDefinedOperatorErrorTests.cs (4)
104
Diagnostic(ErrorCode.
ERR_MemberAlreadyExists
, "op_Addition").WithArguments("op_Addition", "C"),
116
Diagnostic(ErrorCode.
ERR_MemberAlreadyExists
, "%").WithArguments("op_Modulus", "C"),
122
Diagnostic(ErrorCode.
ERR_MemberAlreadyExists
, "op_Implicit").WithArguments("op_Implicit", "E"),
125
Diagnostic(ErrorCode.
ERR_MemberAlreadyExists
, "string").WithArguments("op_Implicit", "F"),
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (2)
Parsing\ParserErrorMessageTests.cs (2)
3565
Diagnostic(ErrorCode.
ERR_MemberAlreadyExists
, "Goo").WithArguments("Goo", "Extensions").WithLocation(9, 24),
3568
Diagnostic(ErrorCode.
ERR_MemberAlreadyExists
, "Goo").WithArguments("Goo", "Extensions").WithLocation(10, 24));