mirror of
https://github.com/less/less.js.git
synced 2026-01-23 06:07:56 -05:00
25 lines
917 B
JavaScript
25 lines
917 B
JavaScript
var Node = require("./node");
|
|
|
|
var Anonymous = function (value, index, currentFileInfo, mapLines, rulesetLike) {
|
|
this.value = value;
|
|
this.index = index;
|
|
this.mapLines = mapLines;
|
|
this.currentFileInfo = currentFileInfo;
|
|
this.rulesetLike = (typeof rulesetLike === 'undefined') ? false : rulesetLike;
|
|
};
|
|
Anonymous.prototype = new Node();
|
|
Anonymous.prototype.type = "Anonymous";
|
|
Anonymous.prototype.eval = function () {
|
|
return new Anonymous(this.value, this.index, this.currentFileInfo, this.mapLines, this.rulesetLike);
|
|
};
|
|
Anonymous.prototype.compare = function (other) {
|
|
return other.toCSS && this.toCSS() === other.toCSS() ? 0 : undefined;
|
|
};
|
|
Anonymous.prototype.isRulesetLike = function() {
|
|
return this.rulesetLike;
|
|
};
|
|
Anonymous.prototype.genCSS = function (context, output) {
|
|
output.add(this.value, this.currentFileInfo, this.index, this.mapLines);
|
|
};
|
|
module.exports = Anonymous;
|