Context
In DelphiAST there is a base class: TmwSimplePasPar
that parses Delphi code.
In addition there is a class: TPasSyntaxTreeBuilder
that is supposed to override every method in its base class.
Question
Is there a way to check that a descendent class has overridden every single virtual method in its base class?
It would be nice to be able to put in a assert.
TPasSyntaxTreeBuilder.Create;
begin
Assert(Self.OverridenMethods.Count = (BaseClass.VirtualMethodCount - TObject.VirtualMethodCount));
....
Note that I'm talking about all virtual methods, not just abstract ones (not implementing abstract methods issues a warning).