summaryrefslogtreecommitdiff
path: root/bin/lib/less/tree/paren.js
blob: 384a43c74cbad09c9d54fb53928c07d9cdf2e5b8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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'));