code: function () {
      var elementFns = [];
      if (this.peekToken().text !== ']') {
        do {
          if (this.peek(']')) {
            // Support trailing commas per ES5.1.
            break;
          }
          var elementFn = this.expression();
          elementFns.push(elementFn);
        } while (this.expect(','));
      }
      this.consume(']');
  
      return extend(function $parseArrayLiteral(self, locals) {
        var array = [];
        for (var i = 0, ii = elementFns.length; i < ii; i++) {
          array.push(elementFns[i](self, locals));
        }
        return array;
      }, {
        literal: true,
        constant: elementFns.every(isConstant),
        inputs: elementFns
      });
    }
docs: This is used with json array declaration