variable method

  1. @override
Node variable (String name)
override

Implementation

//untested - no covered by tests
@override
Node variable(String name) {
  if (rules?.isNotEmpty ?? false) return rules[0].value(name);
  return null;

//2.8.0 20160702
// AtRule.prototype.variable = function (name) {
//     if (this.rules) {
//         // assuming that there is only one rule at this point - that is how parser constructs the rule
//         return Ruleset.prototype.variable.call(this.rules[0], name);
//     }
// };
}