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

Method parseSuper

src/parser.ts:1302–1311  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1300 }
1301
1302 parseSuper(): Node.Super {
1303 const node = this.createNode();
1304
1305 this.expectKeyword('super');
1306 if (!this.match('[') && !this.match('.')) {
1307 this.throwUnexpectedToken(this.lookahead);
1308 }
1309
1310 return this.finalize(node, new Node.Super());
1311 }
1312
1313 parseLeftHandSideExpression(): Node.Expression {
1314 assert(this.context.allowIn, 'callee of new expression always allow in keyword.');

Callers 1

Calls 5

createNodeMethod · 0.95
expectKeywordMethod · 0.95
matchMethod · 0.95
throwUnexpectedTokenMethod · 0.95
finalizeMethod · 0.95

Tested by

no test coverage detected