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