(url: string)
| 83 | } |
| 84 | |
| 85 | public getClosureScopeTreeForUrl(url: string): Nullable<ClosureScope> { |
| 86 | const code = this.loadCodeForUrl(url); |
| 87 | if (code == null) { |
| 88 | return null; |
| 89 | } |
| 90 | try { |
| 91 | const script = new Script(code); |
| 92 | return script.getClosureScopeTree(); |
| 93 | } catch { |
| 94 | // do nothing |
| 95 | } |
| 96 | return null; |
| 97 | } |
| 98 | |
| 99 | public async rewriteScript( |
| 100 | code: string, |
no test coverage detected