MCPcopy Create free account
hub / github.com/babel/babel / parseClassSuper

Function parseClassSuper

packages/babel-parser/src/parser/statement.ts:2215–2225  ·  view source on GitHub ↗
(
    this: Parser,
    node: Undone<N.Class | N.StructDeclaration>,
  )

Source from the content-addressed store, hash-verified

2213
2214 // https://tc39.es/ecma262/#prod-ClassHeritage
2215 parseClassSuper(
2216 this: Parser,
2217 node: Undone<N.Class | N.StructDeclaration>,
2218 ): void {
2219 if (this.eat(tt._extends)) {
2220 this.state.canStartArrow = false;
2221 node.superClass = this.parseExprSubscripts();
2222 } else {
2223 node.superClass = null;
2224 }
2225 }
2226
2227 parseStructDeclaration(
2228 this: Parser,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected