(code: string, options: CSTParserOptions)
| 17 | } |
| 18 | |
| 19 | export function parseAndGetExpression(code: string, options: CSTParserOptions): Object { |
| 20 | let parser = new Parser(options); |
| 21 | let program = parser.parse('(' + code + ')'); |
| 22 | return program.body[0].expression; |
| 23 | } |
| 24 | |
| 25 | export function parseAndGetBindExpression(code: string, options: CSTParserOptions): Object { |
| 26 | return parseAndGetProgram(code, options).selectNodesByType('BindExpression')[0]; |
no test coverage detected
searching dependent graphs…