rulesets method

  1. @override
List<Node> rulesets ()
override

Implementation

//untested
@override
List<Node> rulesets() {
  if (rules?.isNotEmpty ?? false) {
    // assuming that there is only one rule at this point - that is how parser constructs the rule
    return (rules[0] as Ruleset).rulesets();
  }
  return null;

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