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

Function parseMaybeAssignAllowIn

packages/babel-parser/src/parser/expression.ts:256–269  ·  view source on GitHub ↗
(
    this: Parser,
    refExpressionErrors?: ExpressionErrors | null,
    isParenItem?: boolean,
  )

Source from the content-addressed store, hash-verified

254 refExpressionErrors?: ExpressionErrors | null,
255 ): N.Expression;
256 parseMaybeAssignAllowIn(
257 this: Parser,
258 refExpressionErrors?: ExpressionErrors | null,
259 isParenItem?: boolean,
260 ) {
261 if (this.enterAllowIn()) {
262 try {
263 return this.parseMaybeAssign(refExpressionErrors, isParenItem);
264 } finally {
265 this.prodParam.exit();
266 }
267 }
268 return this.parseMaybeAssign(refExpressionErrors, isParenItem);
269 }
270
271 // This method is only used by
272 // the typescript and flow plugins.

Callers

nothing calls this directly

Calls 2

parseMaybeAssignMethod · 0.45
exitMethod · 0.45

Tested by

no test coverage detected