mirror of
https://github.com/dart-lang/sdk
synced 2024-10-14 20:16:01 +00:00
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:
parent
c6e4d6bcc8
commit
090e234172
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -4,7 +4,6 @@
|
|||
|
||||
library front_end.memory_file_system;
|
||||
|
||||
import 'dart:async';
|
||||
import 'dart:convert';
|
||||
import 'dart:typed_data';
|
||||
|
||||
|
|
|
@ -4,7 +4,6 @@
|
|||
|
||||
library front_end.standard_file_system;
|
||||
|
||||
import 'dart:async';
|
||||
import 'dart:io' as io;
|
||||
|
||||
import 'file_system.dart';
|
||||
|
|
|
@ -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';
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -4,8 +4,6 @@
|
|||
|
||||
library fasta.crash;
|
||||
|
||||
import 'dart:async' show Future;
|
||||
|
||||
import 'dart:convert' show jsonEncode;
|
||||
|
||||
import 'dart:io'
|
||||
|
|
|
@ -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';
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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';
|
||||
|
|
|
@ -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';
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -4,8 +4,6 @@
|
|||
|
||||
library fasta.source_loader;
|
||||
|
||||
import 'dart:async' show Future;
|
||||
|
||||
import 'dart:convert' show utf8;
|
||||
|
||||
import 'dart:typed_data' show Uint8List;
|
||||
|
|
|
@ -4,8 +4,6 @@
|
|||
|
||||
library fasta.target;
|
||||
|
||||
import 'dart:async' show Future;
|
||||
|
||||
import 'package:kernel/ast.dart' show Component;
|
||||
|
||||
import 'ticker.dart' show Ticker;
|
||||
|
|
|
@ -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'
|
||||
|
|
|
@ -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'
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -4,8 +4,6 @@
|
|||
|
||||
library fasta.test.fast_strong_test;
|
||||
|
||||
import 'dart:async' show Future;
|
||||
|
||||
import 'dart:io' show Platform;
|
||||
|
||||
import 'testing/suite.dart';
|
||||
|
|
|
@ -4,8 +4,6 @@
|
|||
|
||||
library fasta.test.incremental_test;
|
||||
|
||||
import "dart:async" show Future;
|
||||
|
||||
import "dart:convert" show JsonEncoder;
|
||||
|
||||
import "dart:io" show 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;
|
||||
|
|
|
@ -4,8 +4,6 @@
|
|||
|
||||
library fasta.test.outline_test;
|
||||
|
||||
import 'dart:async' show Future;
|
||||
|
||||
import 'testing/suite.dart';
|
||||
|
||||
Future<FastaContext> createContext(
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -4,8 +4,6 @@
|
|||
|
||||
library fasta.test.sdk_test;
|
||||
|
||||
import 'dart:async' show Future;
|
||||
|
||||
import 'testing/suite.dart';
|
||||
|
||||
Future<FastaContext> createContext(
|
||||
|
|
|
@ -4,7 +4,6 @@
|
|||
|
||||
library fasta.test.strong_test;
|
||||
|
||||
import 'dart:async' show Future;
|
||||
import 'dart:io' show Platform;
|
||||
|
||||
import 'testing/suite.dart';
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -4,7 +4,6 @@
|
|||
|
||||
library fasta.test.text_serialization_test;
|
||||
|
||||
import 'dart:async' show Future;
|
||||
import 'dart:io' show Platform;
|
||||
|
||||
import 'testing/suite.dart';
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -4,8 +4,6 @@
|
|||
|
||||
library fasta.test.weak_test;
|
||||
|
||||
import 'dart:async' show Future;
|
||||
|
||||
import 'testing/suite.dart';
|
||||
|
||||
Future<FastaContext> createContext(
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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'
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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'
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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';
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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'
|
||||
|
|
|
@ -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';
|
||||
|
|
|
@ -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';
|
||||
|
|
|
@ -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';
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -4,8 +4,6 @@
|
|||
|
||||
library fasta.test.compile_platform_test;
|
||||
|
||||
import 'dart:async';
|
||||
|
||||
import 'dart:io';
|
||||
|
||||
import 'package:async_helper/async_helper.dart';
|
||||
|
|
|
@ -4,8 +4,6 @@
|
|||
|
||||
library fasta.test.compile_platform_test;
|
||||
|
||||
import 'dart:async';
|
||||
|
||||
import 'dart:io';
|
||||
|
||||
import 'package:async_helper/async_helper.dart';
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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';
|
||||
|
|
|
@ -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';
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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';
|
||||
|
|
Loading…
Reference in a new issue