Sha256: c21a6b51616eccefec1ed0db5b89fa135b8340410e932c11721d5d84f8e83430

Contents?: true

Size: 1 KB

Versions: 4

Compression:

Stored size: 1 KB

Contents

(function() {
  var Comment, Node,
    __hasProp = {}.hasOwnProperty,
    __extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; };

  Node = require('./node');

  Comment = (function(_super) {
    __extends(Comment, _super);

    function Comment() {
      this.type = 'comment';
      Comment.__super__.constructor.apply(this, arguments);
    }

    Comment.prototype.defaultStyle = function() {
      return {
        left: ' ',
        right: ' '
      };
    };

    Comment.prototype.stringify = function(builder) {
      var style;
      if (this.before) {
        builder(this.before);
      }
      style = this.style();
      return builder("/*" + (style.left + this.text + style.right) + "*/", this);
    };

    return Comment;

  })(Node);

  module.exports = Comment;

}).call(this);

Version data entries

4 entries across 2 versions & 1 rubygems

Version Path
pleeease-0.0.3 node_modules/pleeease/node_modules/autoprefixer/node_modules/postcss/lib/comment.js
pleeease-0.0.3 node_modules/pleeease/node_modules/postcss/lib/comment.js
pleeease-0.0.2 node_modules/pleeease/node_modules/autoprefixer/node_modules/postcss/lib/comment.js
pleeease-0.0.2 node_modules/pleeease/node_modules/postcss/lib/comment.js