(traverse, node, path, state)
| 14176 | // ------------------------------------------------------- |
| 14177 | |
| 14178 | function visitStructuredVariable(traverse, node, path, state) { |
| 14179 | // Allocate new temp for the pattern. |
| 14180 | utils.append(utils.getTempVar(state.localScope.tempVarIndex) + '=', state); |
| 14181 | // Skip the pattern and assign the init to the temp. |
| 14182 | utils.catchupWhiteSpace(node.init.range[0], state); |
| 14183 | traverse(node.init, path, state); |
| 14184 | utils.catchup(node.init.range[1], state); |
| 14185 | // Render the destructured data. |
| 14186 | utils.append(',' + getDestructuredComponents(node.id, state), state); |
| 14187 | state.localScope.tempVarIndex++; |
| 14188 | return false; |
| 14189 | } |
| 14190 | |
| 14191 | visitStructuredVariable.test = function(node, path, state) { |
| 14192 | return node.type === Syntax.VariableDeclarator && |
nothing calls this directly
no test coverage detected