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

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

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

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    171

    1
    720
    720

    1

    246
    260

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

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

    BaseExpression.extend(ParametersExpression, {
      type: "parameters",
      toJavaScript: function() {
        return this.expressions.map(function(expression) {
          return expression.toJavaScript();
        }).join(", ");
      }
    });

    module.exports = ParametersExpression;