diff options
Diffstat (limited to 'bin/lib/less/tree/paren.js')
-rw-r--r-- | bin/lib/less/tree/paren.js | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/bin/lib/less/tree/paren.js b/bin/lib/less/tree/paren.js new file mode 100644 index 00000000..384a43c7 --- /dev/null +++ b/bin/lib/less/tree/paren.js @@ -0,0 +1,16 @@ + +(function (tree) { + +tree.Paren = function (node) { + this.value = node; +}; +tree.Paren.prototype = { + toCSS: function (env) { + return '(' + this.value.toCSS(env) + ')'; + }, + eval: function (env) { + return new(tree.Paren)(this.value.eval(env)); + } +}; + +})(require('../tree')); |