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
|
Rev | Line | |
---|
[6a3a178] | 1 | "use strict";
|
---|
| 2 | Object.defineProperty(exports, "__esModule", { value: true });
|
---|
| 3 | var tslib_1 = require("tslib");
|
---|
| 4 | var node_1 = tslib_1.__importDefault(require("./node"));
|
---|
| 5 | var debug_info_1 = tslib_1.__importDefault(require("./debug-info"));
|
---|
| 6 | var 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 | };
|
---|
| 13 | Comment.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 | });
|
---|
| 26 | exports.default = Comment;
|
---|
| 27 | //# sourceMappingURL=comment.js.map |
---|
Note:
See
TracBrowser
for help on using the repository browser.