visitVariableDeclaration method

  1. @override
dynamic visitVariableDeclaration(
  1. VariableDeclaration node
)

Implementation

@override
visitVariableDeclaration(VariableDeclaration node) {
  final previousKind = _currentDeclarationKind;
  _currentDeclarationKind = node.kind;
  dynamic rtn;
  try {
    for (final declarator in node.declarations) {
      rtn = declarator.visitBy(this);
    }
  } finally {
    _currentDeclarationKind = previousKind;
  }
  return rtn;
}