findMixinsToApply method

Iterable<PbMixin> findMixinsToApply()

Returns the mixin and its ancestors, in the order they should be applied.

Implementation

Iterable<PbMixin> findMixinsToApply() {
  final result = [this];
  for (var p = parent; p != null; p = p.parent) {
    result.add(p);
  }
  return result.reversed;
}