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

Function parseMaybeAssignDisallowIn

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

Source from the content-addressed store, hash-verified

230
231 // Set [~In] parameter for assignment expression
232 parseMaybeAssignDisallowIn(
233 this: Parser,
234 refExpressionErrors?: ExpressionErrors | null,
235 ) {
236 if (this.enterDisallowIn()) {
237 try {
238 return this.parseMaybeAssign(refExpressionErrors);
239 } finally {
240 this.prodParam.exit();
241 }
242 }
243 return this.parseMaybeAssign(refExpressionErrors);
244 }
245
246 // Set [+In] parameter for assignment expression
247 parseMaybeAssignAllowIn(

Callers

nothing calls this directly

Calls 2

parseMaybeAssignMethod · 0.45
exitMethod · 0.45

Tested by

no test coverage detected