visitDeclaredIdentifier method

  1. @override
bool visitDeclaredIdentifier (DeclaredIdentifier node)
override

Implementation

@override
bool visitDeclaredIdentifier(DeclaredIdentifier node) {
  if (identical(node.type, _oldNode)) {
    node.type = _newNode as TypeAnnotation;
    return true;
  } else if (identical(node.identifier, _oldNode)) {
    node.identifier = _newNode as SimpleIdentifier;
    return true;
  }
  return visitAnnotatedNode(node);
}