MCPcopy
hub / github.com/codesandbox/codesandbox-client / getSpreadLiteral

Function getSpreadLiteral

packages/app/static/js/babel.6.26.js:9124–9130  ·  view source on GitHub ↗
(spread, scope, state)

Source from the content-addressed store, hash-verified

9122 var t = _ref.types;
9123
9124 function getSpreadLiteral(spread, scope, state) {
9125 if (state.opts.loose && !t.isIdentifier(spread.argument, { name: "arguments" })) {
9126 return spread.argument;
9127 } else {
9128 return scope.toArray(spread.argument, true);
9129 }
9130 }
9131
9132 function hasSpread(nodes) {
9133 for (var i = 0; i < nodes.length; i++) {

Callers 1

buildFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected