| | |
| | | } = path; |
| | | const elements = node.elements; |
| | | if (!hasSpread(elements)) return; |
| | | const nodes = build(elements, scope, this); |
| | | const nodes = build(elements, scope, this.file); |
| | | let first = nodes[0]; |
| | | |
| | | if (nodes.length === 1 && first !== elements[0].argument) { |
| | |
| | | })) { |
| | | nodes = [args[0].argument]; |
| | | } else { |
| | | nodes = build(args, scope, this); |
| | | nodes = build(args, scope, this.file); |
| | | } |
| | | |
| | | const first = nodes.shift(); |
| | |
| | | |
| | | const callee = calleePath.node; |
| | | |
| | | if (calleePath.isMemberExpression()) { |
| | | if (_core.types.isMemberExpression(callee)) { |
| | | const temp = scope.maybeGenerateMemoised(callee.object); |
| | | |
| | | if (temp) { |
| | |
| | | scope |
| | | } = path; |
| | | if (!hasSpread(node.arguments)) return; |
| | | const nodes = build(node.arguments, scope, this); |
| | | const nodes = build(node.arguments, scope, this.file); |
| | | const first = nodes.shift(); |
| | | let args; |
| | | |