()
| 76 | } |
| 77 | |
| 78 | public ProgramTree parse() { |
| 79 | JavascriptParser parser = new JavascriptParser(compilationContext()); |
| 80 | try { |
| 81 | return parser.parse(this.source, this.fileName, this.forceStrict); |
| 82 | } finally { |
| 83 | if (this.shouldClose) { |
| 84 | try { |
| 85 | this.source.close(); |
| 86 | } catch (IOException e) { |
| 87 | throw new ParserException(e); |
| 88 | } |
| 89 | } |
| 90 | } |
| 91 | } |
| 92 | |
| 93 | protected CompilationContext compilationContext() { |
| 94 | if (this.compilationContext == null) { |
no test coverage detected