forked from firka/flutter
enable combinators_ordering (#107847)
This commit is contained in:
committed by
GitHub
parent
891777d6ed
commit
ccd33631e3
@@ -3,7 +3,7 @@
|
||||
// found in the LICENSE file.
|
||||
|
||||
import 'dart:convert';
|
||||
import 'dart:io' as io show Directory, File, Link, ProcessException, ProcessResult, ProcessSignal, systemEncoding, Process, ProcessStartMode;
|
||||
import 'dart:io' as io show Directory, File, Link, Process, ProcessException, ProcessResult, ProcessSignal, ProcessStartMode, systemEncoding;
|
||||
import 'dart:typed_data';
|
||||
|
||||
import 'package:file/file.dart';
|
||||
|
||||
@@ -34,21 +34,21 @@
|
||||
import 'dart:async';
|
||||
import 'dart:io' as io
|
||||
show
|
||||
exit,
|
||||
IOSink,
|
||||
InternetAddress,
|
||||
InternetAddressType,
|
||||
IOSink,
|
||||
NetworkInterface,
|
||||
pid,
|
||||
Process,
|
||||
ProcessInfo,
|
||||
ProcessSignal,
|
||||
stderr,
|
||||
stdin,
|
||||
Stdin,
|
||||
StdinException,
|
||||
Stdout,
|
||||
StdoutException,
|
||||
exit,
|
||||
pid,
|
||||
stderr,
|
||||
stdin,
|
||||
stdout;
|
||||
|
||||
import 'package:file/file.dart';
|
||||
@@ -63,10 +63,8 @@ export 'dart:io'
|
||||
BytesBuilder,
|
||||
CompressionOptions,
|
||||
// Directory, NO! Use `file_system.dart`
|
||||
exitCode,
|
||||
// File, NO! Use `file_system.dart`
|
||||
// FileSystemEntity, NO! Use `file_system.dart`
|
||||
gzip,
|
||||
GZipCodec,
|
||||
HandshakeException,
|
||||
HttpClient,
|
||||
@@ -79,14 +77,13 @@ export 'dart:io'
|
||||
HttpResponse,
|
||||
HttpServer,
|
||||
HttpStatus,
|
||||
InternetAddress,
|
||||
InternetAddressType,
|
||||
IOException,
|
||||
IOSink,
|
||||
InternetAddress,
|
||||
InternetAddressType,
|
||||
// Link NO! Use `file_system.dart`
|
||||
// NetworkInterface NO! Use `io.dart`
|
||||
OSError,
|
||||
pid,
|
||||
// Platform NO! use `platform.dart`
|
||||
Process,
|
||||
ProcessException,
|
||||
@@ -97,19 +94,22 @@ export 'dart:io'
|
||||
// RandomAccessFile NO! Use `file_system.dart`
|
||||
ServerSocket,
|
||||
SignalException,
|
||||
// stderr, NO! Use `io.dart`
|
||||
// stdin, NO! Use `io.dart`
|
||||
Stdin,
|
||||
StdinException,
|
||||
// stdout, NO! Use `io.dart`
|
||||
Stdout,
|
||||
Socket,
|
||||
SocketException,
|
||||
systemEncoding,
|
||||
Stdin,
|
||||
StdinException,
|
||||
Stdout,
|
||||
WebSocket,
|
||||
WebSocketException,
|
||||
WebSocketTransformer,
|
||||
ZLibEncoder;
|
||||
ZLibEncoder,
|
||||
exitCode,
|
||||
gzip,
|
||||
pid,
|
||||
// stderr, NO! Use `io.dart`
|
||||
// stdin, NO! Use `io.dart`
|
||||
// stdout, NO! Use `io.dart`
|
||||
systemEncoding;
|
||||
|
||||
/// Exits the process with the given [exitCode].
|
||||
typedef ExitFunction = void Function(int exitCode);
|
||||
|
||||
@@ -10,7 +10,7 @@ import 'package:meta/meta.dart';
|
||||
import '../convert.dart';
|
||||
import 'common.dart';
|
||||
import 'io.dart';
|
||||
import 'terminal.dart' show Terminal, TerminalColor, OutputPreferences;
|
||||
import 'terminal.dart' show OutputPreferences, Terminal, TerminalColor;
|
||||
import 'utils.dart';
|
||||
|
||||
const int kDefaultStatusPadding = 59;
|
||||
|
||||
@@ -42,7 +42,7 @@ import 'flutter_cache.dart';
|
||||
import 'flutter_device_manager.dart';
|
||||
import 'flutter_features.dart';
|
||||
import 'fuchsia/fuchsia_device.dart' show FuchsiaDeviceTools;
|
||||
import 'fuchsia/fuchsia_sdk.dart' show FuchsiaSdk, FuchsiaArtifacts;
|
||||
import 'fuchsia/fuchsia_sdk.dart' show FuchsiaArtifacts, FuchsiaSdk;
|
||||
import 'fuchsia/fuchsia_workflow.dart' show FuchsiaWorkflow, fuchsiaWorkflow;
|
||||
import 'globals.dart' as globals;
|
||||
import 'ios/ios_workflow.dart';
|
||||
|
||||
@@ -5,12 +5,12 @@
|
||||
// Hide the original utf8 [Codec] so that we can export our own implementation
|
||||
// which adds additional error handling.
|
||||
import 'dart:convert' hide utf8;
|
||||
import 'dart:convert' as cnv show utf8, Utf8Decoder;
|
||||
import 'dart:convert' as cnv show Utf8Decoder, utf8;
|
||||
|
||||
import 'package:meta/meta.dart';
|
||||
|
||||
import 'base/common.dart';
|
||||
export 'dart:convert' hide utf8, Utf8Codec, Utf8Decoder;
|
||||
export 'dart:convert' hide Utf8Codec, Utf8Decoder, utf8;
|
||||
|
||||
/// The original utf8 encoding for testing overrides only.
|
||||
///
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
import 'dart:async';
|
||||
import 'dart:convert';
|
||||
import 'dart:io' as io show ProcessSignal, Process;
|
||||
import 'dart:io' as io show Process, ProcessSignal;
|
||||
|
||||
import 'package:file/file.dart';
|
||||
import 'package:file/memory.dart';
|
||||
|
||||
@@ -16,7 +16,7 @@ import 'package:path/path.dart' as path; // flutter_ignore: package_path_import
|
||||
import 'package:test_api/test_api.dart' as test_package show test; // ignore: deprecated_member_use
|
||||
import 'package:test_api/test_api.dart' hide test; // ignore: deprecated_member_use
|
||||
|
||||
export 'package:test_api/test_api.dart' hide test, isInstanceOf; // ignore: deprecated_member_use
|
||||
export 'package:test_api/test_api.dart' hide isInstanceOf, test; // ignore: deprecated_member_use
|
||||
|
||||
void tryToDelete(FileSystemEntity fileEntity) {
|
||||
// This should not be necessary, but it turns out that
|
||||
|
||||
@@ -44,7 +44,7 @@ import 'throwing_pub.dart';
|
||||
|
||||
export 'package:flutter_tools/src/base/context.dart' show Generator;
|
||||
|
||||
export 'fake_process_manager.dart' show ProcessManager, FakeProcessManager, FakeCommand;
|
||||
export 'fake_process_manager.dart' show FakeCommand, FakeProcessManager, ProcessManager;
|
||||
|
||||
/// Return the test logger. This assumes that the current Logger is a BufferLogger.
|
||||
BufferLogger get testLogger => context.get<Logger>()! as BufferLogger;
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
import 'dart:async';
|
||||
import 'dart:convert';
|
||||
import 'dart:io' as io show ProcessSignal, Process, ProcessStartMode, ProcessResult, systemEncoding;
|
||||
import 'dart:io' as io show Process, ProcessResult, ProcessSignal, ProcessStartMode, systemEncoding;
|
||||
|
||||
import 'package:file/file.dart';
|
||||
import 'package:meta/meta.dart';
|
||||
|
||||
@@ -9,7 +9,7 @@ import 'package:flutter_tools/src/vmservice.dart';
|
||||
import 'package:test_api/test_api.dart' hide test; // ignore: deprecated_member_use
|
||||
import 'package:vm_service/vm_service.dart' as vm_service;
|
||||
|
||||
export 'package:test_api/test_api.dart' hide test, isInstanceOf; // ignore: deprecated_member_use
|
||||
export 'package:test_api/test_api.dart' hide isInstanceOf, test; // ignore: deprecated_member_use
|
||||
|
||||
/// A fake implementation of a vm_service that mocks the JSON-RPC request
|
||||
/// and response structure.
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
import 'dart:io' as io show IOOverrides, Directory, File, Link;
|
||||
import 'dart:io' as io show Directory, File, IOOverrides, Link;
|
||||
|
||||
import 'package:flutter_tools/src/base/file_system.dart';
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@ import 'package:flutter_tools/src/globals.dart' as globals;
|
||||
import 'package:flutter_tools/src/runner/flutter_command.dart';
|
||||
import 'package:flutter_tools/src/runner/flutter_command_runner.dart';
|
||||
|
||||
export 'package:test_api/test_api.dart' hide test, isInstanceOf; // ignore: deprecated_member_use
|
||||
export 'package:test_api/test_api.dart' hide isInstanceOf, test; // ignore: deprecated_member_use
|
||||
|
||||
CommandRunner<void> createTestCommandRunner([ FlutterCommand? command ]) {
|
||||
final FlutterCommandRunner runner = TestFlutterCommandRunner();
|
||||
|
||||
Reference in New Issue
Block a user