Extract Ast class from DocType class.
Give the responsibility of analyzing Esprima AST tree to separate class. Then in DocType class simply use the simple results from both DocParser and Ast to do very simple detection of doc item type.
Loading
Please sign in to comment