visitDefaultFormalParameter method

  1. @override
bool visitDefaultFormalParameter (
  1. DefaultFormalParameter node
)
override

Implementation

@override
bool visitDefaultFormalParameter(DefaultFormalParameter node) {
  if (identical(node.parameter, _oldNode)) {
    node.parameter = _newNode as NormalFormalParameter;
    return true;
  } else if (identical(node.defaultValue, _oldNode)) {
    node.defaultValue = _newNode as Expression;
    return true;
  }
  return visitNode(node);
}