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

Function parseThrowStatement

packages/babel-parser/src/parser/statement.ts:1043–1051  ·  view source on GitHub ↗
(this: Parser, node: Undone<N.ThrowStatement>)

Source from the content-addressed store, hash-verified

1041 }
1042
1043 parseThrowStatement(this: Parser, node: Undone<N.ThrowStatement>) {
1044 this.next();
1045 if (this.hasPrecedingLineBreak()) {
1046 this.raise(Errors.NewlineAfterThrow, this.state.lastTokEndLoc!);
1047 }
1048 node.argument = this.parseExpression();
1049 this.semicolon();
1050 return this.finishNode(node, "ThrowStatement");
1051 }
1052
1053 parseCatchClauseParam(this: Parser) {
1054 const param = this.parseBindingAtom();

Callers

nothing calls this directly

Calls 3

nextMethod · 0.80
finishNodeMethod · 0.80
semicolonMethod · 0.45

Tested by

no test coverage detected