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

## Statements: 100% (7 / 7) Branches: 100% (2 / 2) Functions: 100% (2 / 2) Lines: 100% (7 / 7) 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
    489
    489

    1

    213

    1
     var BaseExpression   = require("./base"),
    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;