Remove unused dart:async imports

As of Dart 2.1, Future/Stream have been exported from dart:core.

Change-Id: Ia4d70d1ccb55ac117bafe630a24b4ee2f60ff993
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/170126
Reviewed-by: Johnni Winther <johnniwinther@google.com>
Commit-Queue: Samuel Rawlins <srawlins@google.com>
This commit is contained in:
Sam Rawlins 2020-11-03 18:49:54 +00:00 committed by commit-bot@chromium.org
parent c6e4d6bcc8
commit 090e234172
66 changed files with 5 additions and 118 deletions

View file

@ -4,8 +4,6 @@
library front_end.file_system;
import 'dart:async';
/// Abstract interface to file system operations.
///
/// All front end interaction with the file system goes through this interface;

View file

@ -2,8 +2,6 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import 'dart:async' show Future;
import 'package:_fe_analyzer_shared/src/scanner/string_scanner.dart'
show StringScanner;

View file

@ -5,8 +5,6 @@
/// Defines the front-end API for converting source code to Dart Kernel objects.
library front_end.kernel_generator;
import 'dart:async' show Future;
import 'package:_fe_analyzer_shared/src/messages/codes.dart'
show messageMissingMain, noLength;

View file

@ -4,7 +4,6 @@
library front_end.memory_file_system;
import 'dart:async';
import 'dart:convert';
import 'dart:typed_data';

View file

@ -4,7 +4,6 @@
library front_end.standard_file_system;
import 'dart:async';
import 'dart:io' as io;
import 'file_system.dart';

View file

@ -5,7 +5,6 @@
/// Defines the front-end API for converting source code to summaries.
library front_end.summary_generator;
import 'dart:async';
import 'compiler_options.dart';
import '../base/processed_options.dart';

View file

@ -5,8 +5,6 @@
/// API needed by `utils/front_end/summary_worker.dart`, a tool used to compute
/// summaries in build systems like bazel, pub-build, and package-build.
import 'dart:async' show Future;
import 'package:_fe_analyzer_shared/src/messages/diagnostic_message.dart'
show DiagnosticMessageHandler;

View file

@ -2,8 +2,6 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import 'dart:async' show Future;
import 'package:_fe_analyzer_shared/src/messages/codes.dart'
show messageMissingMain;

View file

@ -2,8 +2,6 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import 'dart:async' show Future;
import 'package:_fe_analyzer_shared/src/messages/diagnostic_message.dart'
show DiagnosticMessageHandler;

View file

@ -2,8 +2,6 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import 'dart:async' show Future;
import 'package:kernel/kernel.dart' show Component, CanonicalName, Library;
import 'package:kernel/target/targets.dart' show Target;

View file

@ -4,8 +4,6 @@
import 'dart:io' show exitCode;
import 'dart:async' show Future;
import 'dart:typed_data' show Uint8List;
import 'package:_fe_analyzer_shared/src/messages/severity.dart' show Severity;

View file

@ -4,7 +4,7 @@
library fasta.compiler_context;
import 'dart:async' show Future, Zone, runZoned;
import 'dart:async' show Zone, runZoned;
import 'package:_fe_analyzer_shared/src/messages/severity.dart' show Severity;

View file

@ -4,8 +4,6 @@
library fasta.crash;
import 'dart:async' show Future;
import 'dart:convert' show jsonEncode;
import 'dart:io'

View file

@ -4,8 +4,6 @@
library fasta.dill_loader;
import 'dart:async' show Future;
import 'package:kernel/ast.dart' show Class, Component, DartType, Library;
import '../builder/class_builder.dart';

View file

@ -4,8 +4,6 @@
library fasta.dill_target;
import 'dart:async' show Future;
import 'package:front_end/src/fasta/builder/library_builder.dart'
show LibraryBuilder;

View file

@ -4,8 +4,6 @@
library fasta.get_dependencies;
import 'dart:async' show Future;
import 'package:kernel/kernel.dart' show Component, loadComponentFromBytes;
import 'package:kernel/target/targets.dart' show Target;

View file

@ -6,8 +6,6 @@
/// sdk sources from disk.
library front_end.src.hybrid_file_system;
import 'dart:async';
import '../api_prototype/file_system.dart';
import '../api_prototype/memory_file_system.dart';
import '../api_prototype/standard_file_system.dart';

View file

@ -4,8 +4,6 @@
library fasta.incremental_compiler;
import 'dart:async' show Future;
import 'package:front_end/src/api_prototype/experimental_flags.dart';
import 'package:front_end/src/api_prototype/front_end.dart';
import 'package:front_end/src/base/nnbd_mode.dart';

View file

@ -4,8 +4,6 @@
library fasta.kernel_target;
import 'dart:async' show Future;
import 'package:front_end/src/api_prototype/experimental_flags.dart';
import 'package:front_end/src/fasta/dill/dill_library_builder.dart'
show DillLibraryBuilder;

View file

@ -2,8 +2,6 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import 'dart:async' show Future;
import 'dart:io' show BytesBuilder, File, IOSink;
import 'dart:typed_data' show Uint8List;

View file

@ -4,8 +4,6 @@
library fasta.loader;
import 'dart:async' show Future;
import 'dart:collection' show Queue;
import 'package:_fe_analyzer_shared/src/messages/severity.dart' show Severity;

View file

@ -4,8 +4,6 @@
library fasta.source_loader;
import 'dart:async' show Future;
import 'dart:convert' show utf8;
import 'dart:typed_data' show Uint8List;

View file

@ -4,8 +4,6 @@
library fasta.target;
import 'dart:async' show Future;
import 'package:kernel/ast.dart' show Component;
import 'ticker.dart' show Ticker;

View file

@ -5,8 +5,6 @@
/// Defines the front-end API for converting source code to Dart Kernel objects.
library front_end.kernel_generator_impl;
import 'dart:async' show Future;
import 'package:_fe_analyzer_shared/src/messages/severity.dart' show Severity;
import 'package:kernel/kernel.dart'

View file

@ -5,8 +5,6 @@
/// Common compiler options and helper functions used for testing.
library front_end.testing.compiler_options_common;
import 'dart:async' show Future;
import 'package:kernel/ast.dart' show Library, Component;
import '../api_prototype/front_end.dart'

View file

@ -2,8 +2,6 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import 'dart:async' show Future;
import 'dart:io' show Directory, File, Platform;
import 'package:async_helper/async_helper.dart' show asyncEnd, asyncStart;

View file

@ -4,8 +4,6 @@
library fasta.test.expression_test;
import "dart:async" show Future;
import "dart:convert" show JsonEncoder;
import "dart:io" show File, IOSink;

View file

@ -4,8 +4,6 @@
library fasta.test.fast_strong_test;
import 'dart:async' show Future;
import 'dart:io' show Platform;
import 'testing/suite.dart';

View file

@ -4,8 +4,6 @@
library fasta.test.incremental_test;
import "dart:async" show Future;
import "dart:convert" show JsonEncoder;
import "dart:io" show File;

View file

@ -2,8 +2,6 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import "dart:async" show Future, Stream;
import "dart:convert" show utf8;
import 'dart:io' show File, Platform;

View file

@ -4,8 +4,6 @@
library fasta.test.outline_test;
import 'dart:async' show Future;
import 'testing/suite.dart';
Future<FastaContext> createContext(

View file

@ -6,7 +6,7 @@ import 'package:_fe_analyzer_shared/src/parser/parser.dart'
show ParserError, parse;
import 'package:testing/testing.dart'
show Chain, ChainContext, Future, Result, Step, runMe;
show Chain, ChainContext, Result, Step, runMe;
import '../../utils/scanner_chain.dart' show Read, Scan, ScannedFile;

View file

@ -2,8 +2,7 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE.md file.
import 'package:testing/testing.dart'
show Chain, ChainContext, Future, Step, runMe;
import 'package:testing/testing.dart' show Chain, ChainContext, Step, runMe;
import '../../utils/scanner_chain.dart' show Read, Scan;

View file

@ -4,8 +4,6 @@
library fasta.test.sdk_test;
import 'dart:async' show Future;
import 'testing/suite.dart';
Future<FastaContext> createContext(

View file

@ -4,7 +4,6 @@
library fasta.test.strong_test;
import 'dart:async' show Future;
import 'dart:io' show Platform;
import 'testing/suite.dart';

View file

@ -4,8 +4,6 @@
library fasta.testing.suite;
import 'dart:async' show Future;
import 'dart:convert' show jsonDecode;
import 'dart:io' show Directory, File, Platform;

View file

@ -4,7 +4,6 @@
library fasta.test.text_serialization_test;
import 'dart:async' show Future;
import 'dart:io' show Platform;
import 'testing/suite.dart';

View file

@ -4,7 +4,6 @@
library fasta.test.textual_outline_test;
import 'dart:async' show Future;
import 'dart:io';
import 'package:dart_style/dart_style.dart' show DartFormatter;

View file

@ -4,8 +4,6 @@
library fasta.test.weak_test;
import 'dart:async' show Future;
import 'testing/suite.dart';
Future<FastaContext> createContext(

View file

@ -7,7 +7,7 @@
/// reload on the running program.
library front_end.incremental.hot_reload_e2e_test;
import 'dart:async' show Completer, Future;
import 'dart:async' show Completer;
import 'dart:convert' show LineSplitter, utf8;

View file

@ -2,8 +2,6 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import 'dart:async' show Future;
import 'package:expect/expect.dart' show Expect;
import 'package:front_end/src/api_prototype/compiler_options.dart'

View file

@ -2,8 +2,6 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import 'dart:async' show Future;
import 'package:testing/testing.dart' show Chain, runMe;
import 'incremental_bulk_compiler_full.dart' show Context;

View file

@ -2,8 +2,6 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import 'dart:async' show Future;
import 'dart:io' show Directory, File;
import 'package:expect/expect.dart' show Expect;

View file

@ -2,8 +2,6 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import 'dart:async' show Future;
import 'dart:developer' show debugger;
import 'dart:io' show Directory, File;

View file

@ -2,8 +2,6 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import 'dart:async' show Future;
import 'dart:io' show File;
import 'package:_fe_analyzer_shared/src/messages/diagnostic_message.dart'

View file

@ -2,8 +2,6 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import 'dart:async' show Future;
import 'dart:io' show Directory, File, FileSystemEntity;
import 'dart:typed_data' show Uint8List;

View file

@ -2,8 +2,6 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import 'dart:async' show Future;
import 'package:testing/testing.dart' show Chain, ChainContext, runMe;
import 'parser_suite.dart';

View file

@ -2,8 +2,6 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import 'dart:async' show Future;
import 'dart:convert' show jsonDecode;
import 'dart:io' show File;

View file

@ -2,8 +2,6 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import 'dart:async' show Future;
import 'dart:io' show File, Platform;
import 'package:kernel/target/targets.dart' show NoneTarget, TargetFlags;

View file

@ -2,8 +2,6 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import 'dart:async' show Future;
import 'dart:io' show File, Platform;
import 'dart:typed_data' show Uint8List;

View file

@ -2,8 +2,6 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import 'dart:async' show Future;
import 'dart:io' show Directory, File, FileSystemEntity;
import 'package:testing/testing.dart'

View file

@ -2,8 +2,6 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import 'dart:async' show Future;
import 'package:testing/testing.dart' show Chain, runMe;
import 'spelling_test_base.dart';

View file

@ -2,8 +2,6 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import 'dart:async' show Future;
import 'package:testing/testing.dart' show Chain, runMe;
import 'spelling_test_base.dart';

View file

@ -2,8 +2,6 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import 'dart:async';
import 'package:front_end/src/api_prototype/compiler_options.dart';
import 'package:front_end/src/api_prototype/memory_file_system.dart';
import 'package:front_end/src/base/processed_options.dart';

View file

@ -5,7 +5,6 @@
library front_end.test.standard_file_system_test;
import 'dart:async';
import 'dart:convert';
import 'dart:io' as io;
import 'dart:math' show Random;

View file

@ -4,8 +4,6 @@
library fasta.testing.kernel_chain;
import 'dart:async' show Future;
import 'dart:io' show Directory, File, IOSink, Platform;
import 'dart:typed_data' show Uint8List;

View file

@ -10,7 +10,7 @@ import 'package:_fe_analyzer_shared/src/scanner/scanner.dart'
import 'package:_fe_analyzer_shared/src/scanner/io.dart' show readBytesFromFile;
import 'package:testing/testing.dart'
show ChainContext, Future, Result, Step, TestDescription;
show ChainContext, Result, Step, TestDescription;
class ReadFile {
final Uri uri;

View file

@ -2,8 +2,6 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE.md file.
import 'dart:async' show Future;
import 'dart:convert' show utf8;
import 'dart:io' show File;

View file

@ -4,8 +4,6 @@
library fasta.tool.command_line;
import 'dart:async' show Future;
import 'dart:io' show exit;
import 'package:_fe_analyzer_shared/src/messages/severity.dart' show Severity;

View file

@ -4,8 +4,6 @@
library fasta.test.compile_platform_test;
import 'dart:async';
import 'dart:io';
import 'package:async_helper/async_helper.dart';

View file

@ -4,8 +4,6 @@
library fasta.test.compile_platform_test;
import 'dart:async';
import 'dart:io';
import 'package:async_helper/async_helper.dart';

View file

@ -4,8 +4,6 @@
library fasta.tool.entry_points;
import 'dart:async' show Stream;
import 'dart:convert' show LineSplitter, jsonDecode, jsonEncode, utf8;
import 'dart:io' show File, Platform, exitCode, stderr, stdin, stdout;

View file

@ -2,8 +2,6 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import 'dart:async';
import 'dart:io';
import 'dart:isolate';

View file

@ -5,7 +5,6 @@
/// An entrypoint used to run portions of fasta and measure its performance.
library front_end.tool.fasta_perf;
import 'dart:async';
import 'dart:io';
import 'package:_fe_analyzer_shared/src/parser/parser.dart';

View file

@ -42,7 +42,6 @@
/// updates input1.dart a second time.
library front_end.tool.incremental_perf;
import 'dart:async';
import 'dart:convert';
import 'dart:io' hide FileSystemEntity;

View file

@ -15,7 +15,6 @@
/// outlines).
library front_end.tool.perf;
import 'dart:async';
import 'dart:io' show Directory, File, Platform, exit;
import 'package:_fe_analyzer_shared/src/scanner/scanner.dart';