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