visitConstructorFieldInitializer method

  1. @override
bool visitConstructorFieldInitializer (ConstructorFieldInitializer node)
override

Implementation

@override
bool visitConstructorFieldInitializer(ConstructorFieldInitializer node) {
  if (identical(node.fieldName, _oldNode)) {
    node.fieldName = _newNode as SimpleIdentifier;
    return true;
  } else if (identical(node.expression, _oldNode)) {
    node.expression = _newNode as Expression;
    return true;
  }
  return visitNode(node);
}