visitImportStatement method

  1. @override
Future<void> visitImportStatement(
  1. ImportStatement statement
)
override

Implementation

@override
Future<void> visitImportStatement(ImportStatement statement) async {
  try {
    final symbols = await symbolsResolver.getSymbolsForImportStatement(statement: statement);

    for (final symbol in symbols) {
      _environment.defineType(symbol);
    }
  } on ResolveError catch (error) {
    _errorHandler?.emit(error);
  }
}