visitAnnotation method

  1. @override
bool visitAnnotation (Annotation node)
override

Implementation

@override
bool visitAnnotation(Annotation node) {
  if (identical(node.arguments, _oldNode)) {
    node.arguments = _newNode as ArgumentList;
    return true;
  } else if (identical(node.constructorName, _oldNode)) {
    node.constructorName = _newNode as SimpleIdentifier;
    return true;
  } else if (identical(node.name, _oldNode)) {
    node.name = _newNode as Identifier;
    return true;
  }
  return visitNode(node);
}