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

Method parseArrayLike

packages/babel-parser/src/plugins/flow/index.ts:2566–2578  ·  view source on GitHub ↗
(
      close: TokenType,
      refExpressionErrors?: ExpressionErrors | null,
    )

Source from the content-addressed store, hash-verified

2564 }
2565
2566 parseArrayLike(
2567 close: TokenType,
2568 refExpressionErrors?: ExpressionErrors | null,
2569 ): N.ArrayExpression {
2570 const node = super.parseArrayLike(close, refExpressionErrors);
2571
2572 // Check if there is any unparenthesized type cast
2573 if (node.type === "ArrayExpression") {
2574 this.toReferencedList(node.elements);
2575 }
2576
2577 return node;
2578 }
2579
2580 isValidLVal(
2581 type: string,

Callers 1

parseExprAtomFunction · 0.45

Calls 1

toReferencedListMethod · 0.95

Tested by

no test coverage detected