(ast: AST, context?: any)
| 724 | |
| 725 | export class RecursiveAstVisitor implements AstVisitor { |
| 726 | visit(ast: AST, context?: any): any { |
| 727 | // The default implementation just visits every node. |
| 728 | // Classes that extend RecursiveAstVisitor should override this function |
| 729 | // to selectively visit the specified node. |
| 730 | ast.visit(this, context); |
| 731 | } |
| 732 | visitUnary(ast: Unary, context: any): any { |
| 733 | this.visit(ast.expr, context); |
| 734 | } |
no test coverage detected