# 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
    161

    1
    470
    470

    1

    202

    1var 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;