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

Function parseExpression

packages/babel-parser/src/parser/expression.ts:197–210  ·  view source on GitHub ↗
(
    this: Parser,
    disallowIn?: boolean,
    refExpressionErrors?: ExpressionErrors,
  )

Source from the content-addressed store, hash-verified

195 // delayed syntax error at correct position).
196
197 parseExpression(
198 this: Parser,
199 disallowIn?: boolean,
200 refExpressionErrors?: ExpressionErrors,
201 ): N.Expression {
202 if (disallowIn ? this.enterDisallowIn() : this.enterAllowIn()) {
203 try {
204 return this.parseExpressionBase(refExpressionErrors);
205 } finally {
206 this.prodParam.exit();
207 }
208 }
209 return this.parseExpressionBase(refExpressionErrors);
210 }
211
212 // https://tc39.es/ecma262/#prod-Expression
213 parseExpressionBase(

Callers

nothing calls this directly

Calls 1

exitMethod · 0.45

Tested by

no test coverage detected