visitAtRule method

void visitAtRule(
  1. AtRule atRuleNode,
  2. VisitArgs visitArgs
)

Implementation

void visitAtRule(AtRule atRuleNode, VisitArgs visitArgs) {
  final newAllExtends = atRuleNode.allExtends.sublist(0)
    ..addAll(allExtendsStack.last);
  newAllExtends
      .addAll(doExtendChaining(newAllExtends, atRuleNode.allExtends));
  allExtendsStack.add(newAllExtends);

//2.8.0 20160702
// visitAtRule: function (atRuleNode, visitArgs) {
//     var newAllExtends = atRuleNode.allExtends.concat(this.allExtendsStack[this.allExtendsStack.length - 1]);
//     newAllExtends = newAllExtends.concat(this.doExtendChaining(newAllExtends, atRuleNode.allExtends));
//     this.allExtendsStack.push(newAllExtends);
// },
}