mirror of
https://github.com/less/less.js.git
synced 2026-02-08 22:15:04 -05:00
17 lines
380 B
JavaScript
17 lines
380 B
JavaScript
module.exports = function (tree) {
|
|
|
|
var RulesetCall = function (variable) {
|
|
this.variable = variable;
|
|
};
|
|
RulesetCall.prototype = {
|
|
type: "RulesetCall",
|
|
accept: function (visitor) {
|
|
},
|
|
eval: function (env) {
|
|
var detachedRuleset = new(tree.Variable)(this.variable).eval(env);
|
|
return detachedRuleset.callEval(env);
|
|
}
|
|
};
|
|
return RulesetCall;
|
|
};
|