3 tree.Rule = function (name, value, important, index) {
5 this.value = (value instanceof tree.Value) ? value : new(tree.Value)([value]);
6 this.important = important ? ' ' + important.trim() : '';
9 if (name.charAt(0) === '@') {
11 } else { this.variable = false }
13 tree.Rule.prototype.toCSS = function (env) {
14 if (this.variable) { return "" }
16 return this.name + (env.compress ? ':' : ': ') +
17 this.value.toCSS(env) +
22 tree.Rule.prototype.eval = function (context) {
23 return new(tree.Rule)(this.name, this.value.eval(context), this.important, this.index);
26 tree.Shorthand = function (a, b) {
31 tree.Shorthand.prototype = {
32 toCSS: function (env) {
33 return this.a.toCSS(env) + "/" + this.b.toCSS(env);
35 eval: function () { return this }
38 })(require('less/tree'));