(
this: Parser,
file: Undone<N.File>,
program: Undone<N.Program>,
)
| 81 | // to its body instead of creating a new node. |
| 82 | |
| 83 | parseTopLevel( |
| 84 | this: Parser, |
| 85 | file: Undone<N.File>, |
| 86 | program: Undone<N.Program>, |
| 87 | ): N.File { |
| 88 | file.program = this.parseProgram( |
| 89 | program, |
| 90 | tt.eof, |
| 91 | this.options.sourceType === "module" ? "module" : "script", |
| 92 | ); |
| 93 | file.comments = this.comments; |
| 94 | |
| 95 | if (this.optionFlags & OptionFlags.Tokens) { |
| 96 | file.tokens = createExportedTokens(this.tokens); |
| 97 | } |
| 98 | |
| 99 | return this.finishNode(file, "File"); |
| 100 | } |
| 101 | |
| 102 | parseProgram( |
| 103 | this: Parser, |
nothing calls this directly
no test coverage detected