(code: string)
| 64 | } |
| 65 | |
| 66 | export function parseAndGetSuper(code: string): Object { |
| 67 | let parser = new Parser(); |
| 68 | let program = parser.parse(`(class{ constructor() { ${code} }})`); |
| 69 | return program.body[0].expression.body.body[0].body.body[0].expression; |
| 70 | } |
| 71 | |
| 72 | export function parseAndGetStatementInLoop(code: string, loopLabel: string): Object { |
| 73 | let parser = new Parser(); |