mirror of
https://github.com/less/less.js.git
synced 2026-02-08 22:15:04 -05:00
17 lines
395 B
JavaScript
17 lines
395 B
JavaScript
var Node = require("./node.js");
|
|
|
|
var Paren = function (node) {
|
|
this.value = node;
|
|
};
|
|
Paren.prototype = new Node();
|
|
Paren.prototype.type = "Paren";
|
|
Paren.prototype.genCSS = function (env, output) {
|
|
output.add('(');
|
|
this.value.genCSS(env, output);
|
|
output.add(')');
|
|
};
|
|
Paren.prototype.eval = function (env) {
|
|
return new(Paren)(this.value.eval(env));
|
|
};
|
|
module.exports = Paren;
|