(
this: Parser,
node: Undone<N.Class | N.StructDeclaration>,
)
| 2216 | |
| 2217 | // https://tc39.es/ecma262/#prod-ClassHeritage |
| 2218 | parseClassSuper( |
| 2219 | this: Parser, |
| 2220 | node: Undone<N.Class | N.StructDeclaration>, |
| 2221 | ): void { |
| 2222 | if (this.eat(tt._extends)) { |
| 2223 | this.state.canStartArrow = false; |
| 2224 | this.classHeritageStart = this.state.start; |
| 2225 | node.superClass = this.parseExprSubscripts(); |
| 2226 | } else { |
| 2227 | node.superClass = null; |
| 2228 | } |
| 2229 | } |
| 2230 | |
| 2231 | parseStructDeclaration( |
| 2232 | this: Parser, |
nothing calls this directly
no outgoing calls
no test coverage detected