// [...elements]
exports.ArrayExpression = (node, generator) => {
  generator.advance("[");
  node.elements.forEach((elementNode, idx) => {
    if (idx !== 0) { generator.advance(","); }
    generator.generate(elementNode);
  });
  generator.advance("]");
};

// [...elements]
exports.ArrayExpression = (node, generator) => {
  generator.advance("[");
  node.elements.forEach((elementNode, idx) => {
    if (idx !== 0) { generator.advance(","); }
    if (elementNode !== null) {
      generator.generate(elementNode);
    }
  });
  generator.advance("]");
};

Allow for empty array elements, like [1, , 3].
Allow for empty array elements, like [1, , 3].
