(script: string)
| 75 | type ScopeBindings = ReadonlyMap<string, number | string | boolean>; |
| 76 | |
| 77 | function parseScript(script: string) { |
| 78 | return recast.parse(script, { |
| 79 | parser: { |
| 80 | parse(source: string) { |
| 81 | return babelParse(source, { sourceType: "script", plugins: [], tokens: true }); |
| 82 | }, |
| 83 | }, |
| 84 | }); |
| 85 | } |
| 86 | |
| 87 | function collectScopeBindings(ast: AstNode): ScopeBindings { |
| 88 | const bindings = new Map<string, number | string | boolean>(); |
no outgoing calls
no test coverage detected