# Code coverage report for lib/parser/ast/array.js

## Statements: 100% (8 / 8) Branches: 100% (2 / 2) Functions: 100% (2 / 2) Lines: 100% (8 / 8) Ignored: none

All files » lib/parser/ast/ » array.js

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    311
    1

    1
    665
    665

    1

    296

    1
     var BaseExpression       = require("./base");
    var ParametersExpression = require("./parameters");

    /**
     */

    function ArrayExpression(expressions) {
      this.expressions = expressions || new ParametersExpression();
      BaseExpression.apply(this, arguments);
    }

    /**
     */

    BaseExpression.extend(ArrayExpression, {

      /**
       */

      type: "array",

      /**
       */

      toJavaScript: function() {
        return "[" + this.expressions.toJavaScript() + "]";
      }
    });

    module.exports = ArrayExpression;