| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | 22x 22x 22x 22x 69x 69x 69x 69x | // @flow
import mapSyntax from './map-syntax';
import { setInScope } from './utils';
import mergeBlock from './merge-block';
import type { GeneratorType } from './flow/types';
const generateAssignment: GeneratorType = node => {
const [target, value] = node.params;
const block = [value].map(mapSyntax(null)).reduce(mergeBlock, []);
block.push(setInScope(target));
return block;
};
export default generateAssignment;
|