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

Function parseVoidPattern

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

Source from the content-addressed store, hash-verified

3213 }
3214
3215 parseVoidPattern(
3216 this: Parser,
3217 refExpressionErrors: ExpressionErrors | null,
3218 ): N.VoidPattern {
3219 this.expectPlugin("discardBinding");
3220 const node = this.startNode<N.VoidPattern>();
3221 if (refExpressionErrors != null) {
3222 refExpressionErrors.voidPatternLoc = this.state.startLoc;
3223 }
3224 this.next();
3225 return this.finishNode(node, "VoidPattern");
3226 }
3227
3228 parseMaybeAssignAllowInOrVoidPattern(
3229 this: Parser,

Callers

nothing calls this directly

Calls 2

nextMethod · 0.80
finishNodeMethod · 0.80

Tested by

no test coverage detected