find method

  1. @override
List<MixinFound> find (Selector selector, [ dynamic self, Function filter ])
override

Implementation

//untested - no covered by tests
// self type?
@override
List<MixinFound> find(Selector selector, [dynamic self, Function filter]) {
  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).find(selector, self, filter);
  }
  return null;

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