wikiparser-node icon indicating copy to clipboard operation
wikiparser-node copied to clipboard

Share common features between `:invalid` selector and `lint` method

Open bhsd-harry opened this issue 2 years ago • 1 comments

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.

bhsd-harry avatar Jan 04 '24 11:01 bhsd-harry

Also useful for a variant of the print method, e.g., diagnose.

bhsd-harry avatar Jun 05 '24 04:06 bhsd-harry