less
Version:
Leaner CSS
17 lines (15 loc) • 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;