visitExtendDeclaration method

  1. @override
void visitExtendDeclaration(
  1. ExtendDeclaration node
)
override

Implementation

@override
void visitExtendDeclaration(ExtendDeclaration node) {
  var inheritName = '';
  for (var selector in node.selectors) {
    inheritName += selector.toString();
  }
  if (inherits.containsKey(inheritName)) {
    inherits[inheritName]!.add(_currSelectorGroup!);
  } else {
    inherits[inheritName] = [_currSelectorGroup!];
  }

  // Remove this @extend
  _extendsToRemove.add(_currDeclIndex!);

  super.visitExtendDeclaration(node);
}