visitAsExpression method

  1. @override
bool visitAsExpression (AsExpression node)
override

Implementation

@override
bool visitAsExpression(AsExpression node) {
  if (identical(node.expression, _oldNode)) {
    node.expression = _newNode as Expression;
    return true;
  } else if (identical(node.type, _oldNode)) {
    node.type = _newNode as TypeAnnotation;
    return true;
  }
  return visitNode(node);
}