visitEnumConstantDeclaration method

  1. @override
bool visitEnumConstantDeclaration (EnumConstantDeclaration node)
override

Implementation

@override
bool visitEnumConstantDeclaration(EnumConstantDeclaration node) {
  if (identical(node.name, _oldNode)) {
    node.name = _newNode as SimpleIdentifier;
    return true;
  }
  return visitAnnotatedNode(node);
}