wikiparser-node
wikiparser-node copied to clipboard
Share common features between `:invalid` selector and `lint` method
Don't have to be exhaustive, but adding isValid(): [Severity, Rule, string] and childIsValid(n: number): [Severity, Rule, string] methods for all types of tokens may be useful.
Also useful for a variant of the print method, e.g., diagnose.