Code coverage report for lib/nodes/comment.js

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

All files » lib/nodes/ » comment.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    11                     11 57 57       11 11   11  
'use strict';
 
var Node = require('./node');
 
/**
 * Initialize a `Comment` with the given `val`, optionally `buffer`,
 * otherwise the comment may render in the output.
 *
 * @param {String} val
 * @param {Boolean} buffer
 * @api public
 */
 
var Comment = module.exports = function Comment(val, buffer) {
  this.val = val;
  this.buffer = buffer;
};
 
// Inherit from `Node`.
Comment.prototype = Object.create(Node.prototype);
Comment.prototype.constructor = Comment;
 
Comment.prototype.type = 'Comment';