blob: 70ce6e2f0503602f3a84ba93186f6a869b16c293 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
(function (tree) {
tree.Assignment = function (key, val) {
this.key = key;
this.value = val;
};
tree.Assignment.prototype = {
toCSS: function () {
return this.key + '=' + (this.value.toCSS ? this.value.toCSS() : this.value);
},
eval: function (env) {
if (this.value.eval) { this.value = this.value.eval(env) }
return this;
}
};
})(require('../tree'));
|