(code: string)
| 14 | } |
| 15 | |
| 16 | interpret(code: string) { |
| 17 | try { |
| 18 | const ast = this._parser.parse(code); |
| 19 | InterpreterModule.getVisitor(ast.type).visitNode(ast); |
| 20 | } finally { |
| 21 | // reset the scope for next run |
| 22 | InterpreterModule.setCurrentScope(new Scope(null)); |
| 23 | } |
| 24 | } |
| 25 | } |
no test coverage detected