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