MCPcopy Index your code
hub / github.com/nodejs/node / visitArrayLiteralExpression

Function visitArrayLiteralExpression

test/fixtures/snapshot/typescript.js:101072–101078  ·  view source on GitHub ↗

* Visits an ArrayLiteralExpression that contains a spread element. * * @param node An ArrayLiteralExpression node.

(node)

Source from the content-addressed store, hash-verified

101070 * @param node An ArrayLiteralExpression node.
101071 */
101072 function visitArrayLiteralExpression(node) {
101073 if (ts.some(node.elements, ts.isSpreadElement)) {
101074 // We are here because we contain a SpreadElementExpression.
101075 return transformAndSpreadElements(node.elements, /*isArgumentList*/ false, !!node.multiLine, /*hasTrailingComma*/ !!node.elements.hasTrailingComma);
101076 }
101077 return ts.visitEachChild(node, visitor, context);
101078 }
101079 /**
101080 * Visits a CallExpression that contains either a spread element or `super`.
101081 *

Callers 2

visitorWorkerFunction · 0.85

Calls 3

visitElementsFunction · 0.85
someMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…