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

Function parseMaybeDecoratorArguments

packages/babel-parser/src/parser/statement.ts:722–736  ·  view source on GitHub ↗
(
    this: Parser,
    expr: N.Expression,
    startLoc: Position,
  )

Source from the content-addressed store, hash-verified

720 }
721
722 parseMaybeDecoratorArguments(
723 this: Parser,
724 expr: N.Expression,
725 startLoc: Position,
726 ): N.Expression {
727 if (this.eat(tt.parenL)) {
728 const node = this.startNodeAt<N.CallExpression>(startLoc);
729 node.callee = expr;
730 node.arguments = this.parseCallExpressionArguments();
731 this.toReferencedList(node.arguments);
732 return this.finishNode(node, "CallExpression");
733 }
734
735 return expr;
736 }
737
738 parseBreakContinueStatement(
739 node: Undone<N.Node>,

Callers

nothing calls this directly

Calls 2

finishNodeMethod · 0.80
toReferencedListMethod · 0.45

Tested by

no test coverage detected