source: trip-planner-front/node_modules/less/lib/less/tree/comment.js

Last change on this file was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 986 bytes
Line 
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3var tslib_1 = require("tslib");
4var node_1 = tslib_1.__importDefault(require("./node"));
5var debug_info_1 = tslib_1.__importDefault(require("./debug-info"));
6var Comment = function (value, isLineComment, index, currentFileInfo) {
7 this.value = value;
8 this.isLineComment = isLineComment;
9 this._index = index;
10 this._fileInfo = currentFileInfo;
11 this.allowRoot = true;
12};
13Comment.prototype = Object.assign(new node_1.default(), {
14 type: 'Comment',
15 genCSS: function (context, output) {
16 if (this.debugInfo) {
17 output.add(debug_info_1.default(context, this), this.fileInfo(), this.getIndex());
18 }
19 output.add(this.value);
20 },
21 isSilent: function (context) {
22 var isCompressed = context.compress && this.value[2] !== '!';
23 return this.isLineComment || isCompressed;
24 }
25});
26exports.default = Comment;
27//# sourceMappingURL=comment.js.map
Note: See TracBrowser for help on using the repository browser.