This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Visitor used for the new transformer. | |
* It does not use _context as the other Visitor, and is more based around returning the new nodes instead of adding them to _context | |
*/ | |
export interface ASTVisitor2 { | |
/** The Program visitor will only have one usecase: it returns the new AST */ | |
Program: { | |
enter: (node: SimpleAST) => TransformedAST; | |
}; |