59 references to ERR_HidingAbstractMethod
Microsoft.CodeAnalysis.CSharp (3)
Errors\ErrorFacts.cs (1)
879
case ErrorCode.
ERR_HidingAbstractMethod
:
Symbols\Source\SourceMemberContainerSymbol_ImplementationChecks.cs (2)
1634
diagnostics.Add(ErrorCode.
ERR_HidingAbstractMethod
, associatedPropertyOrEvent.Locations[0], associatedPropertyOrEvent, hiddenMember);
1649
diagnostics.Add(ErrorCode.
ERR_HidingAbstractMethod
, hidingMemberLocation, hidingMember, hiddenMember);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (31)
Semantics\InheritanceBindingTests.cs (26)
458
new ErrorDescription { Code = (int)ErrorCode.
ERR_HidingAbstractMethod
, Line = 11, Column = 17 },
460
new ErrorDescription { Code = (int)ErrorCode.
ERR_HidingAbstractMethod
, Line = 12, Column = 26 },
462
new ErrorDescription { Code = (int)ErrorCode.
ERR_HidingAbstractMethod
, Line = 13, Column = 25 },
486
new ErrorDescription { Code = (int)ErrorCode.
ERR_HidingAbstractMethod
, Line = 11, Column = 17 },
488
new ErrorDescription { Code = (int)ErrorCode.
ERR_HidingAbstractMethod
, Line = 12, Column = 26 },
490
new ErrorDescription { Code = (int)ErrorCode.
ERR_HidingAbstractMethod
, Line = 13, Column = 25 },
514
new ErrorDescription { Code = (int)ErrorCode.
ERR_HidingAbstractMethod
, Line = 11, Column = 17 },
516
new ErrorDescription { Code = (int)ErrorCode.
ERR_HidingAbstractMethod
, Line = 12, Column = 26 },
518
new ErrorDescription { Code = (int)ErrorCode.
ERR_HidingAbstractMethod
, Line = 13, Column = 25 },
543
Diagnostic(ErrorCode.
ERR_HidingAbstractMethod
, "Event1").WithArguments("Goo.Event1", "AbstractGoo.Event1"),
549
Diagnostic(ErrorCode.
ERR_HidingAbstractMethod
, "Event2").WithArguments("Goo.Event2", "AbstractGoo.Event2"),
555
Diagnostic(ErrorCode.
ERR_HidingAbstractMethod
, "Event3").WithArguments("Goo.Event3", "AbstractGoo.Event3"),
4407
new ErrorDescription { Code = (int)ErrorCode.
ERR_HidingAbstractMethod
, Line = 28, Column = 17, IsWarning = false },
4409
new ErrorDescription { Code = (int)ErrorCode.
ERR_HidingAbstractMethod
, Line = 29, Column = 26, IsWarning = false },
4411
new ErrorDescription { Code = (int)ErrorCode.
ERR_HidingAbstractMethod
, Line = 30, Column = 25, IsWarning = false },
4487
new ErrorDescription { Code = (int)ErrorCode.
ERR_HidingAbstractMethod
, Line = 28, Column = 17, IsWarning = false }, //1.get/set
4489
new ErrorDescription { Code = (int)ErrorCode.
ERR_HidingAbstractMethod
, Line = 29, Column = 26, IsWarning = false }, //2.get/set
4491
new ErrorDescription { Code = (int)ErrorCode.
ERR_HidingAbstractMethod
, Line = 30, Column = 25, IsWarning = false }, //3.get/set
4567
new ErrorDescription { Code = (int)ErrorCode.
ERR_HidingAbstractMethod
, Line = 28, Column = 17, IsWarning = false }, //1.get/set
4569
new ErrorDescription { Code = (int)ErrorCode.
ERR_HidingAbstractMethod
, Line = 29, Column = 26, IsWarning = false }, //2.get/set
4571
new ErrorDescription { Code = (int)ErrorCode.
ERR_HidingAbstractMethod
, Line = 30, Column = 25, IsWarning = false }, //3.get/set
4648
Diagnostic(ErrorCode.
ERR_HidingAbstractMethod
, "Event1").WithArguments("Derived.Event1", "Base.Event1"),
4654
Diagnostic(ErrorCode.
ERR_HidingAbstractMethod
, "Event2").WithArguments("Derived.Event2", "Base.Event2"),
4660
Diagnostic(ErrorCode.
ERR_HidingAbstractMethod
, "Event3").WithArguments("Derived.Event3", "Base.Event3"),
6152
Diagnostic(ErrorCode.
ERR_HidingAbstractMethod
, "Method").WithArguments("Base2.Method(int, System.Exception[])", "Base.Method(int, params System.Exception[])"),
6156
Diagnostic(ErrorCode.
ERR_HidingAbstractMethod
, "Method").WithArguments("Base2.Method(int, params int[])", "Base.Method(int, int[])"),
Semantics\RecordTests.cs (5)
12079
Diagnostic(ErrorCode.
ERR_HidingAbstractMethod
, "X").WithArguments("B.X()", "A.X").WithLocation(9, 21),
12082
Diagnostic(ErrorCode.
ERR_HidingAbstractMethod
, "Y").WithArguments("B.Y", "A.Y").WithLocation(10, 23),
15546
Diagnostic(ErrorCode.
ERR_HidingAbstractMethod
, "B").WithArguments("B.Deconstruct(out int, out int)", "A.Deconstruct(out int, out int)").WithLocation(6, 17)
18195
Diagnostic(ErrorCode.
ERR_HidingAbstractMethod
, "B").WithArguments("B.Equals(B?)", "A.Equals(B)").WithLocation(7, 17)
29941
Diagnostic(ErrorCode.
ERR_HidingAbstractMethod
, "I").WithArguments("Derived.I()", "Base.I").WithLocation(8, 16),
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (25)
Symbols\AccessorOverriddenOrHiddenMembersTests.cs (2)
257
Diagnostic(ErrorCode.
ERR_HidingAbstractMethod
, "P2").WithArguments("TestClass2.P2", "TestClass1.P2"));
286
Diagnostic(ErrorCode.
ERR_HidingAbstractMethod
, "P2").WithArguments("TestClass2.P2", "TestClass1.P2"),
Symbols\OverriddenOrHiddenMembersTests.cs (1)
1889
Diagnostic(ErrorCode.
ERR_HidingAbstractMethod
, "P2").WithArguments("TestClass2.P2", "TestClass1.P2"),
Symbols\SymbolErrorTests.cs (22)
2154
Diagnostic(ErrorCode.
ERR_HidingAbstractMethod
, "P").WithArguments("B.P", "A.P").WithLocation(7, 51),
9320
new ErrorDescription { Code = (int)ErrorCode.
ERR_HidingAbstractMethod
, Line = 11, Column = 34 });
9364
Diagnostic(ErrorCode.
ERR_HidingAbstractMethod
, "goo").WithArguments("NS.A3.goo", "NS.B3.goo()").WithLocation(31, 32),
9367
Diagnostic(ErrorCode.
ERR_HidingAbstractMethod
, "@goo").WithArguments("A1.goo", "B1.goo").WithLocation(9, 24),
9370
Diagnostic(ErrorCode.
ERR_HidingAbstractMethod
, "@goo").WithArguments("A1.A2.goo", "A1.B2.goo()").WithLocation(18, 36),
9404
Diagnostic(ErrorCode.
ERR_HidingAbstractMethod
, "f").WithArguments("D.f", "A.f()"));
9477
Diagnostic(ErrorCode.
ERR_HidingAbstractMethod
, "M").WithArguments("Derived1.M()", "Base.M()"),
9479
Diagnostic(ErrorCode.
ERR_HidingAbstractMethod
, "P").WithArguments("Derived1.P()", "Base.P"),
9481
Diagnostic(ErrorCode.
ERR_HidingAbstractMethod
, "M").WithArguments("Derived2.M", "Base.M()"),
9483
Diagnostic(ErrorCode.
ERR_HidingAbstractMethod
, "P").WithArguments("Derived2.P", "Base.P"),
9485
Diagnostic(ErrorCode.
ERR_HidingAbstractMethod
, "M").WithArguments("Derived3.M", "Base.M()"),
9487
Diagnostic(ErrorCode.
ERR_HidingAbstractMethod
, "P").WithArguments("Derived3.P", "Base.P"),
9489
Diagnostic(ErrorCode.
ERR_HidingAbstractMethod
, "M").WithArguments("Derived4.M()", "Base.M()"),
9491
Diagnostic(ErrorCode.
ERR_HidingAbstractMethod
, "P").WithArguments("Derived4.P()", "Base.P"),
9493
Diagnostic(ErrorCode.
ERR_HidingAbstractMethod
, "M").WithArguments("Derived5.M", "Base.M()"),
9495
Diagnostic(ErrorCode.
ERR_HidingAbstractMethod
, "P").WithArguments("Derived5.P", "Base.P"),
9497
Diagnostic(ErrorCode.
ERR_HidingAbstractMethod
, "M").WithArguments("Derived6.M", "Base.M()"),
9499
Diagnostic(ErrorCode.
ERR_HidingAbstractMethod
, "P").WithArguments("Derived6.P", "Base.P"),
9501
Diagnostic(ErrorCode.
ERR_HidingAbstractMethod
, "M").WithArguments("Derived7.M()", "Base.M()"),
9503
Diagnostic(ErrorCode.
ERR_HidingAbstractMethod
, "P").WithArguments("Derived7.P", "Base.P"),
9505
Diagnostic(ErrorCode.
ERR_HidingAbstractMethod
, "M").WithArguments("Derived8.M", "Base.M()"),
9507
Diagnostic(ErrorCode.
ERR_HidingAbstractMethod
, "P").WithArguments("Derived8.P", "Base.P"));