# All files / src/base index.js

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

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19

    87x

    87x

    2001x
    1465x

    813x

    1462x

     // Base plugin
    export default function base() {
      return {
        semantics() {
          return {
            '*': _ =>
              function baseSemanticsParser([node, ...rest], t) {
                const result = {
                  ...node,
                  params: node.params.map(child => t([child, ...rest])),
                };

                return result;
              },
          };
        },
      };
    }