72 references to ERR_MemberNameSameAsType
Microsoft.CodeAnalysis.CSharp (2)
Errors\ErrorFacts.cs (1)
887
case ErrorCode.
ERR_MemberNameSameAsType
:
Symbols\Source\SourceMemberContainerSymbol.cs (1)
1358
diagnostics.Add(ErrorCode.
ERR_MemberNameSameAsType
, member.Locations[0], this.Name);
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)
152687
Diagnostic(ErrorCode.
ERR_MemberNameSameAsType
, "Test").WithArguments("Test").WithLocation(12, 15),
Semantics\OperatorTests.cs (18)
6765
Diagnostic(ErrorCode.
ERR_MemberNameSameAsType
, "++").WithArguments("op_Increment"),
6768
Diagnostic(ErrorCode.
ERR_MemberNameSameAsType
, "--").WithArguments("op_Decrement"),
6771
Diagnostic(ErrorCode.
ERR_MemberNameSameAsType
, "+").WithArguments("op_UnaryPlus"),
6774
Diagnostic(ErrorCode.
ERR_MemberNameSameAsType
, "-").WithArguments("op_UnaryNegation"),
6777
Diagnostic(ErrorCode.
ERR_MemberNameSameAsType
, "~").WithArguments("op_OnesComplement"),
6780
Diagnostic(ErrorCode.
ERR_MemberNameSameAsType
, "+").WithArguments("op_Addition"),
6783
Diagnostic(ErrorCode.
ERR_MemberNameSameAsType
, "-").WithArguments("op_Subtraction"),
6786
Diagnostic(ErrorCode.
ERR_MemberNameSameAsType
, "*").WithArguments("op_Multiply"),
6789
Diagnostic(ErrorCode.
ERR_MemberNameSameAsType
, "/").WithArguments("op_Division"),
6792
Diagnostic(ErrorCode.
ERR_MemberNameSameAsType
, "%").WithArguments("op_Modulus"),
6795
Diagnostic(ErrorCode.
ERR_MemberNameSameAsType
, "^").WithArguments("op_ExclusiveOr"),
6798
Diagnostic(ErrorCode.
ERR_MemberNameSameAsType
, "&").WithArguments("op_BitwiseAnd"),
6801
Diagnostic(ErrorCode.
ERR_MemberNameSameAsType
, "|").WithArguments("op_BitwiseOr"),
6804
Diagnostic(ErrorCode.
ERR_MemberNameSameAsType
, "<<").WithArguments("op_LeftShift"),
6807
Diagnostic(ErrorCode.
ERR_MemberNameSameAsType
, ">>").WithArguments("op_RightShift"),
6810
Diagnostic(ErrorCode.
ERR_MemberNameSameAsType
, ">>>").WithArguments("op_UnsignedRightShift").WithLocation(64, 30)
6831
Diagnostic(ErrorCode.
ERR_MemberNameSameAsType
, "op_Explicit").WithArguments("op_Explicit"),
6834
Diagnostic(ErrorCode.
ERR_MemberNameSameAsType
, "op_Implicit").WithArguments("op_Implicit"));
Semantics\RefFieldTests.cs (3)
21353
Diagnostic(ErrorCode.
ERR_MemberNameSameAsType
, "R").WithArguments("R").WithLocation(3, 16),
21383
Diagnostic(ErrorCode.
ERR_MemberNameSameAsType
, "R").WithArguments("R").WithLocation(3, 16),
21571
Diagnostic(ErrorCode.
ERR_MemberNameSameAsType
, "R").WithArguments("R").WithLocation(3, 16),
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (45)
Symbols\DefaultInterfaceImplementationTests.cs (3)
44369
Diagnostic(ErrorCode.
ERR_MemberNameSameAsType
, "I2").WithArguments("I2").WithLocation(8, 17),
44417
Diagnostic(ErrorCode.
ERR_MemberNameSameAsType
, "I15").WithArguments("I15").WithLocation(70, 20),
44429
Diagnostic(ErrorCode.
ERR_MemberNameSameAsType
, "I17").WithArguments("I17").WithLocation(78, 20),
Symbols\StaticAbstractMembersInInterfacesTests.cs (4)
912
Diagnostic(ErrorCode.
ERR_MemberNameSameAsType
, "I2").WithArguments("I2").WithLocation(4, 27),
918
Diagnostic(ErrorCode.
ERR_MemberNameSameAsType
, "I2").WithArguments("I2").WithLocation(9, 20),
933
Diagnostic(ErrorCode.
ERR_MemberNameSameAsType
, "I3").WithArguments("I3").WithLocation(14, 20),
939
Diagnostic(ErrorCode.
ERR_MemberNameSameAsType
, "I3").WithArguments("I3").WithLocation(19, 27),
Symbols\SymbolErrorTests.cs (38)
9763
Diagnostic(ErrorCode.
ERR_MemberNameSameAsType
, "B").WithArguments("B"),
9766
Diagnostic(ErrorCode.
ERR_MemberNameSameAsType
, "C").WithArguments("C"),
9769
Diagnostic(ErrorCode.
ERR_MemberNameSameAsType
, "D").WithArguments("D"),
9772
Diagnostic(ErrorCode.
ERR_MemberNameSameAsType
, "E").WithArguments("E"),
9775
Diagnostic(ErrorCode.
ERR_MemberNameSameAsType
, "F").WithArguments("F"),
9778
Diagnostic(ErrorCode.
ERR_MemberNameSameAsType
, "G").WithArguments("G"),
9781
Diagnostic(ErrorCode.
ERR_MemberNameSameAsType
, "H").WithArguments("H"),
9784
Diagnostic(ErrorCode.
ERR_MemberNameSameAsType
, "L").WithArguments("L"),
9787
Diagnostic(ErrorCode.
ERR_MemberNameSameAsType
, "K").WithArguments("K"),
9790
Diagnostic(ErrorCode.
ERR_MemberNameSameAsType
, "M").WithArguments("M"),
9793
Diagnostic(ErrorCode.
ERR_MemberNameSameAsType
, "N").WithArguments("N"),
9796
Diagnostic(ErrorCode.
ERR_MemberNameSameAsType
, "O").WithArguments("O"),
9799
Diagnostic(ErrorCode.
ERR_MemberNameSameAsType
, "P").WithArguments("P"),
9802
Diagnostic(ErrorCode.
ERR_MemberNameSameAsType
, "Q").WithArguments("Q"),
9805
Diagnostic(ErrorCode.
ERR_MemberNameSameAsType
, "R").WithArguments("R"),
9808
Diagnostic(ErrorCode.
ERR_MemberNameSameAsType
, "S").WithArguments("S"),
9811
Diagnostic(ErrorCode.
ERR_MemberNameSameAsType
, "T").WithArguments("T"),
9814
Diagnostic(ErrorCode.
ERR_MemberNameSameAsType
, "U").WithArguments("U"),
9817
Diagnostic(ErrorCode.
ERR_MemberNameSameAsType
, "V").WithArguments("V"),
9820
Diagnostic(ErrorCode.
ERR_MemberNameSameAsType
, "W").WithArguments("W"),
9823
Diagnostic(ErrorCode.
ERR_MemberNameSameAsType
, "X").WithArguments("X"),
9826
Diagnostic(ErrorCode.
ERR_MemberNameSameAsType
, "Y").WithArguments("Y"),
9829
Diagnostic(ErrorCode.
ERR_MemberNameSameAsType
, "Z").WithArguments("Z"),
9921
Diagnostic(ErrorCode.
ERR_MemberNameSameAsType
, "get").WithArguments("get_P").WithLocation(3, 16),
9923
Diagnostic(ErrorCode.
ERR_MemberNameSameAsType
, "set").WithArguments("set_P").WithLocation(7, 16),
9925
Diagnostic(ErrorCode.
ERR_MemberNameSameAsType
, "get").WithArguments("get_R").WithLocation(23, 23));
9960
Diagnostic(ErrorCode.
ERR_MemberNameSameAsType
, "get").WithArguments("get_Item").WithLocation(5, 33),
9962
Diagnostic(ErrorCode.
ERR_MemberNameSameAsType
, "set").WithArguments("set_Item").WithLocation(9, 54),
9964
Diagnostic(ErrorCode.
ERR_MemberNameSameAsType
, "get").WithArguments("get_Item").WithLocation(20, 40));
10011
Diagnostic(ErrorCode.
ERR_MemberNameSameAsType
, "get").WithArguments("B1").WithLocation(7, 32),
10013
Diagnostic(ErrorCode.
ERR_MemberNameSameAsType
, "set").WithArguments("B2").WithLocation(11, 53));
10063
Diagnostic(ErrorCode.
ERR_MemberNameSameAsType
, "E").WithArguments("B1").WithLocation(8, 34),
10066
Diagnostic(ErrorCode.
ERR_MemberNameSameAsType
, "E").WithArguments("B2").WithLocation(12, 34),
22048
Diagnostic(ErrorCode.
ERR_MemberNameSameAsType
, "PartialCtor").WithArguments("PartialCtor").WithLocation(3, 13),
22054
Diagnostic(ErrorCode.
ERR_MemberNameSameAsType
, "PublicPartialCtor").WithArguments("PublicPartialCtor").WithLocation(3, 20),
22155
Diagnostic(ErrorCode.
ERR_MemberNameSameAsType
, "StaticPartialCtor").WithArguments("StaticPartialCtor").WithLocation(3, 20),
22173
Diagnostic(ErrorCode.
ERR_MemberNameSameAsType
, "StaticPublicPartialCtor").WithArguments("StaticPublicPartialCtor").WithLocation(3, 27),
22176
Diagnostic(ErrorCode.
ERR_MemberNameSameAsType
, "PublicStaticPartialCtor").WithArguments("PublicStaticPartialCtor").WithLocation(3, 27),
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (1)
Parsing\AsyncParsingTests.cs (1)
2400
Diagnostic(ErrorCode.
ERR_MemberNameSameAsType
, "async").WithArguments("async").WithLocation(1, 21),