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

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

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

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

    1
    3
    3

    1

    2

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

    function CommentNodeExpression(value) {
      this.value = value;
      BaseExpression.apply(this, arguments);
    }

    BaseExpression.extend(CommentNodeExpression, {
      type: "commentNode",
      toJavaScript: function() {
        return "comment(\"" + this.value.replace(/["]/g, "\\\"") + "\")";
      }
    });

    module.exports = CommentNodeExpression;