MCPcopy
hub / github.com/jquery/esprima / parseScript

Method parseScript

src/parser.ts:3338–3345  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3336 }
3337
3338 parseScript(): Node.Script {
3339 const node = this.createNode();
3340 const body = this.parseDirectivePrologues();
3341 while (this.lookahead.type !== Token.EOF) {
3342 body.push(this.parseStatementListItem());
3343 }
3344 return this.finalize(node, new Node.Script(body));
3345 }
3346
3347 // https://tc39.github.io/ecma262/#sec-imports
3348

Callers 3

api-tests.jsFile · 0.80
testParseFunction · 0.80
parseFunction · 0.80

Calls 5

createNodeMethod · 0.95
finalizeMethod · 0.95
pushMethod · 0.80

Tested by

no test coverage detected