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

Function parseVoidPattern

packages/babel-parser/src/parser/expression.ts:3223–3234  ·  view source on GitHub ↗
(
    this: Parser,
    refExpressionErrors: ExpressionErrors | null,
  )

Source from the content-addressed store, hash-verified

3221 }
3222
3223 parseVoidPattern(
3224 this: Parser,
3225 refExpressionErrors: ExpressionErrors | null,
3226 ): N.VoidPattern {
3227 this.expectPlugin("discardBinding");
3228 const node = this.startNode<N.VoidPattern>();
3229 if (refExpressionErrors != null) {
3230 refExpressionErrors.voidPatternLoc = this.state.startLoc;
3231 }
3232 this.next();
3233 return this.finishNode(node, "VoidPattern");
3234 }
3235
3236 parseMaybeAssignAllowInOrVoidPattern(
3237 this: Parser,

Callers

nothing calls this directly

Calls 2

nextMethod · 0.80
finishNodeMethod · 0.80

Tested by

no test coverage detected