(
this: Parser,
file: Undone<N.File>,
program: Undone<N.Program>,
)
| 93 | // to its body instead of creating a new node. |
| 94 | |
| 95 | parseTopLevel( |
| 96 | this: Parser, |
| 97 | file: Undone<N.File>, |
| 98 | program: Undone<N.Program>, |
| 99 | ): N.File { |
| 100 | file.program = this.parseProgram( |
| 101 | program, |
| 102 | tt.eof, |
| 103 | this.options.sourceType === "module" ? "module" : "script", |
| 104 | ); |
| 105 | file.comments = this.comments; |
| 106 | |
| 107 | if (this.optionFlags & OptionFlags.Tokens) { |
| 108 | file.tokens = createExportedTokens(this.tokens); |
| 109 | } |
| 110 | |
| 111 | return this.finishNode(file, "File"); |
| 112 | } |
| 113 | |
| 114 | parseProgram( |
| 115 | this: Parser, |
nothing calls this directly
no test coverage detected