block-comment.js 565 B

123456789101112131415161718192021222324252627282930313233
  1. /*!
  2. * Jade - nodes - BlockComment
  3. * Copyright(c) 2010 TJ Holowaychuk <tj@vision-media.ca>
  4. * MIT Licensed
  5. */
  6. /**
  7. * Module dependencies.
  8. */
  9. var Node = require('./node');
  10. /**
  11. * Initialize a `BlockComment` with the given `block`.
  12. *
  13. * @param {String} val
  14. * @param {Block} block
  15. * @param {Boolean} buffer
  16. * @api public
  17. */
  18. var BlockComment = module.exports = function BlockComment(val, block, buffer) {
  19. this.block = block;
  20. this.val = val;
  21. this.buffer = buffer;
  22. };
  23. /**
  24. * Inherit from `Node`.
  25. */
  26. BlockComment.prototype.__proto__ = Node.prototype;