80 references to ERR_MemberNameSameAsType
Microsoft.CodeAnalysis.CSharp (2)
Errors\ErrorFacts.cs (1)
950
or ErrorCode.
ERR_MemberNameSameAsType
Symbols\Source\SourceMemberContainerSymbol.cs (1)
1435
diagnostics.Add(ErrorCode.
ERR_MemberNameSameAsType
, member.GetFirstLocation(), typeName);
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (12)
PartialEventsAndConstructorsTests.cs (4)
161
Diagnostic(ErrorCode.
ERR_MemberNameSameAsType
, "C").WithArguments("C").WithLocation(4, 13),
191
Diagnostic(ErrorCode.
ERR_MemberNameSameAsType
, "C").WithArguments("C").WithLocation(4, 14),
230
Diagnostic(ErrorCode.
ERR_MemberNameSameAsType
, "C").WithArguments("C").WithLocation(5, 13),
239
Diagnostic(ErrorCode.
ERR_MemberNameSameAsType
, "C").WithArguments("C").WithLocation(6, 13),
Semantics\ExtensionTests2.cs (8)
28277
Diagnostic(ErrorCode.
ERR_MemberNameSameAsType
, "E").WithArguments("E").WithLocation(5, 28));
28296
Diagnostic(ErrorCode.
ERR_MemberNameSameAsType
, "E").WithArguments("E").WithLocation(5, 21));
28315
Diagnostic(ErrorCode.
ERR_MemberNameSameAsType
, "E").WithArguments("E").WithLocation(5, 27));
28334
Diagnostic(ErrorCode.
ERR_MemberNameSameAsType
, "E").WithArguments("E").WithLocation(5, 20));
28353
Diagnostic(ErrorCode.
ERR_MemberNameSameAsType
, "0").WithArguments("get_E").WithLocation(5, 32));
28372
Diagnostic(ErrorCode.
ERR_MemberNameSameAsType
, "0").WithArguments("get_E").WithLocation(5, 32));
28391
Diagnostic(ErrorCode.
ERR_MemberNameSameAsType
, "+").WithArguments("op_Addition").WithLocation(5, 38));
28433
Diagnostic(ErrorCode.
ERR_MemberNameSameAsType
, "E2").WithArguments("E2").WithLocation(8, 32));
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (24)
Semantics\NamedAndOptionalTests.cs (2)
259
Diagnostic(ErrorCode.
ERR_MemberNameSameAsType
, "C").WithArguments("C").WithLocation(4, 15));
278
Diagnostic(ErrorCode.
ERR_MemberNameSameAsType
, "C").WithArguments("C").WithLocation(4, 15),
Semantics\NullableReferenceTypesTests.cs (1)
157163
Diagnostic(ErrorCode.
ERR_MemberNameSameAsType
, "Test").WithArguments("Test").WithLocation(12, 15),
Semantics\OperatorTests.cs (18)
6766
Diagnostic(ErrorCode.
ERR_MemberNameSameAsType
, "++").WithArguments("op_Increment"),
6769
Diagnostic(ErrorCode.
ERR_MemberNameSameAsType
, "--").WithArguments("op_Decrement"),
6772
Diagnostic(ErrorCode.
ERR_MemberNameSameAsType
, "+").WithArguments("op_UnaryPlus"),
6775
Diagnostic(ErrorCode.
ERR_MemberNameSameAsType
, "-").WithArguments("op_UnaryNegation"),
6778
Diagnostic(ErrorCode.
ERR_MemberNameSameAsType
, "~").WithArguments("op_OnesComplement"),
6781
Diagnostic(ErrorCode.
ERR_MemberNameSameAsType
, "+").WithArguments("op_Addition"),
6784
Diagnostic(ErrorCode.
ERR_MemberNameSameAsType
, "-").WithArguments("op_Subtraction"),
6787
Diagnostic(ErrorCode.
ERR_MemberNameSameAsType
, "*").WithArguments("op_Multiply"),
6790
Diagnostic(ErrorCode.
ERR_MemberNameSameAsType
, "/").WithArguments("op_Division"),
6793
Diagnostic(ErrorCode.
ERR_MemberNameSameAsType
, "%").WithArguments("op_Modulus"),
6796
Diagnostic(ErrorCode.
ERR_MemberNameSameAsType
, "^").WithArguments("op_ExclusiveOr"),
6799
Diagnostic(ErrorCode.
ERR_MemberNameSameAsType
, "&").WithArguments("op_BitwiseAnd"),
6802
Diagnostic(ErrorCode.
ERR_MemberNameSameAsType
, "|").WithArguments("op_BitwiseOr"),
6805
Diagnostic(ErrorCode.
ERR_MemberNameSameAsType
, "<<").WithArguments("op_LeftShift"),
6808
Diagnostic(ErrorCode.
ERR_MemberNameSameAsType
, ">>").WithArguments("op_RightShift"),
6811
Diagnostic(ErrorCode.
ERR_MemberNameSameAsType
, ">>>").WithArguments("op_UnsignedRightShift").WithLocation(64, 30)
6832
Diagnostic(ErrorCode.
ERR_MemberNameSameAsType
, "op_Explicit").WithArguments("op_Explicit"),
6835
Diagnostic(ErrorCode.
ERR_MemberNameSameAsType
, "op_Implicit").WithArguments("op_Implicit"));
Semantics\RefFieldTests.cs (3)
21960
Diagnostic(ErrorCode.
ERR_MemberNameSameAsType
, "R").WithArguments("R").WithLocation(3, 16),
21990
Diagnostic(ErrorCode.
ERR_MemberNameSameAsType
, "R").WithArguments("R").WithLocation(3, 16),
22178
Diagnostic(ErrorCode.
ERR_MemberNameSameAsType
, "R").WithArguments("R").WithLocation(3, 16),
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (41)
Symbols\DefaultInterfaceImplementationTests.cs (1)
44565
Diagnostic(ErrorCode.
ERR_MemberNameSameAsType
, "I2").WithArguments("I2").WithLocation(8, 17),
Symbols\SymbolErrorTests.cs (33)
9917
Diagnostic(ErrorCode.
ERR_MemberNameSameAsType
, "B").WithArguments("B"),
9920
Diagnostic(ErrorCode.
ERR_MemberNameSameAsType
, "C").WithArguments("C"),
9923
Diagnostic(ErrorCode.
ERR_MemberNameSameAsType
, "D").WithArguments("D"),
9926
Diagnostic(ErrorCode.
ERR_MemberNameSameAsType
, "E").WithArguments("E"),
9929
Diagnostic(ErrorCode.
ERR_MemberNameSameAsType
, "F").WithArguments("F"),
9932
Diagnostic(ErrorCode.
ERR_MemberNameSameAsType
, "G").WithArguments("G"),
9935
Diagnostic(ErrorCode.
ERR_MemberNameSameAsType
, "H").WithArguments("H"),
9938
Diagnostic(ErrorCode.
ERR_MemberNameSameAsType
, "L").WithArguments("L"),
9941
Diagnostic(ErrorCode.
ERR_MemberNameSameAsType
, "K").WithArguments("K"),
9944
Diagnostic(ErrorCode.
ERR_MemberNameSameAsType
, "M").WithArguments("M"),
9947
Diagnostic(ErrorCode.
ERR_MemberNameSameAsType
, "N").WithArguments("N"),
9950
Diagnostic(ErrorCode.
ERR_MemberNameSameAsType
, "O").WithArguments("O"),
9953
Diagnostic(ErrorCode.
ERR_MemberNameSameAsType
, "P").WithArguments("P"),
9956
Diagnostic(ErrorCode.
ERR_MemberNameSameAsType
, "Q").WithArguments("Q"),
9959
Diagnostic(ErrorCode.
ERR_MemberNameSameAsType
, "R").WithArguments("R"),
9962
Diagnostic(ErrorCode.
ERR_MemberNameSameAsType
, "S").WithArguments("S"),
9965
Diagnostic(ErrorCode.
ERR_MemberNameSameAsType
, "T").WithArguments("T"),
9968
Diagnostic(ErrorCode.
ERR_MemberNameSameAsType
, "U").WithArguments("U"),
9971
Diagnostic(ErrorCode.
ERR_MemberNameSameAsType
, "V").WithArguments("V"),
9974
Diagnostic(ErrorCode.
ERR_MemberNameSameAsType
, "W").WithArguments("W"),
9977
Diagnostic(ErrorCode.
ERR_MemberNameSameAsType
, "X").WithArguments("X"),
9980
Diagnostic(ErrorCode.
ERR_MemberNameSameAsType
, "Y").WithArguments("Y"),
9983
Diagnostic(ErrorCode.
ERR_MemberNameSameAsType
, "Z").WithArguments("Z"),
10075
Diagnostic(ErrorCode.
ERR_MemberNameSameAsType
, "get").WithArguments("get_P").WithLocation(3, 16),
10077
Diagnostic(ErrorCode.
ERR_MemberNameSameAsType
, "set").WithArguments("set_P").WithLocation(7, 16),
10079
Diagnostic(ErrorCode.
ERR_MemberNameSameAsType
, "get").WithArguments("get_R").WithLocation(23, 23));
10114
Diagnostic(ErrorCode.
ERR_MemberNameSameAsType
, "get").WithArguments("get_Item").WithLocation(5, 33),
10116
Diagnostic(ErrorCode.
ERR_MemberNameSameAsType
, "set").WithArguments("set_Item").WithLocation(9, 54),
10118
Diagnostic(ErrorCode.
ERR_MemberNameSameAsType
, "get").WithArguments("get_Item").WithLocation(20, 40));
10165
Diagnostic(ErrorCode.
ERR_MemberNameSameAsType
, "get").WithArguments("B1").WithLocation(7, 32),
10167
Diagnostic(ErrorCode.
ERR_MemberNameSameAsType
, "set").WithArguments("B2").WithLocation(11, 53));
10217
Diagnostic(ErrorCode.
ERR_MemberNameSameAsType
, "E").WithArguments("B1").WithLocation(8, 34),
10220
Diagnostic(ErrorCode.
ERR_MemberNameSameAsType
, "E").WithArguments("B2").WithLocation(12, 34),
Symbols\TypeTests.cs (7)
2523
Diagnostic(ErrorCode.
ERR_MemberNameSameAsType
, "").WithArguments("").WithLocation(5, 18),
2529
Diagnostic(ErrorCode.
ERR_MemberNameSameAsType
, "").WithArguments("").WithLocation(6, 19),
2538
Diagnostic(ErrorCode.
ERR_MemberNameSameAsType
, "").WithArguments("").WithLocation(7, 22),
2550
Diagnostic(ErrorCode.
ERR_MemberNameSameAsType
, "").WithArguments("").WithLocation(8, 18),
2559
Diagnostic(ErrorCode.
ERR_MemberNameSameAsType
, "").WithArguments("").WithLocation(10, 19),
2571
Diagnostic(ErrorCode.
ERR_MemberNameSameAsType
, "").WithArguments("").WithLocation(12, 26),
2598
Diagnostic(ErrorCode.
ERR_MemberNameSameAsType
, "").WithArguments("").WithLocation(21, 18),
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (1)
Parsing\AsyncParsingTests.cs (1)
2380
Diagnostic(ErrorCode.
ERR_MemberNameSameAsType
, "async").WithArguments("async").WithLocation(1, 21),