Sha256: 8738b4b3d4c9bfb27881971b03bb3abf9446935caab295e785f8d7423c02683b
Contents?: true
Size: 719 Bytes
Versions: 2
Compression:
Stored size: 719 Bytes
Contents
var Node = require("./node"), getDebugInfo = require("./debug-info"); var Comment = function (value, isLineComment, index, currentFileInfo) { this.value = value; this.isLineComment = isLineComment; this.currentFileInfo = currentFileInfo; }; Comment.prototype = new Node(); Comment.prototype.type = "Comment"; Comment.prototype.genCSS = function (context, output) { if (this.debugInfo) { output.add(getDebugInfo(context, this), this.currentFileInfo, this.index); } output.add(this.value); }; Comment.prototype.isSilent = function(context) { var isCompressed = context.compress && this.value[2] !== "!"; return this.isLineComment || isCompressed; }; module.exports = Comment;
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
less-execjs-2.6.0.4 | lib/less/js/less/lib/less/tree/comment.js |
less-execjs-2.6.0.3 | lib/less/js/less/lib/less/tree/comment.js |