# All files / src/generator sequence.js

100% Statements 4/4
100% Branches 0/0
100% Functions 1/1
100% Lines 4/4

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    22x
    22x

    22x
    3x

     // @flow
    import mapSyntax from "./map-syntax";
    import mergeBlock from "./merge-block";
    import type { GeneratorType } from "./flow/types";

    const generateSequence: GeneratorType = (node, parent) => {
      return node.params.map(mapSyntax(parent)).reduce(mergeBlock, []);
    };

    export default generateSequence;