visitDeclarationGroup method

  1. @override
void visitDeclarationGroup(
  1. DeclarationGroup node
)
override

Implementation

@override
void visitDeclarationGroup(DeclarationGroup node) {
  var oldDeclIndex = _currDeclIndex;

  var decls = node.declarations;
  for (_currDeclIndex = 0;
      _currDeclIndex! < decls.length;
      _currDeclIndex = _currDeclIndex! + 1) {
    decls[_currDeclIndex!].visit(this);
  }

  if (_extendsToRemove.isNotEmpty) {
    var removeTotal = _extendsToRemove.length - 1;
    for (var index = removeTotal; index >= 0; index--) {
      decls.removeAt(_extendsToRemove[index]);
    }
    _extendsToRemove.clear();
  }

  _currDeclIndex = oldDeclIndex;
}