mirror of
https://github.com/dart-lang/sdk
synced 2024-11-02 12:24:24 +00:00
fix sort_directives
violations
See: https://dart-review.googlesource.com/c/sdk/+/196026 TEST=Code cleanup exclusively (sorting imports); no new tests. Change-Id: Ib07a82ff418138c542d6a83cfab9aabbb285f866 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/196180 Auto-Submit: Phil Quitslund <pquitslund@google.com> Reviewed-by: Phil Quitslund <pquitslund@google.com> Reviewed-by: Brian Wilkerson <brianwilkerson@google.com> Reviewed-by: Ben Konyi <bkonyi@google.com> Reviewed-by: Bob Nystrom <rnystrom@google.com> Commit-Queue: Phil Quitslund <pquitslund@google.com>
This commit is contained in:
parent
b345ef9fb3
commit
a6e3008ded
28 changed files with 54 additions and 47 deletions
|
@ -6,9 +6,9 @@ import 'dart:async';
|
|||
import 'dart:io';
|
||||
|
||||
import 'package:dart2native/generate.dart';
|
||||
import 'package:path/path.dart' as path;
|
||||
import 'package:front_end/src/api_prototype/compiler_options.dart'
|
||||
show Verbosity;
|
||||
import 'package:path/path.dart' as path;
|
||||
|
||||
import '../core.dart';
|
||||
import '../experiments.dart';
|
||||
|
|
|
@ -12,11 +12,11 @@ import 'package:kernel/class_hierarchy.dart';
|
|||
import 'package:kernel/core_types.dart';
|
||||
import 'package:kernel/kernel.dart' hide MapEntry;
|
||||
import 'package:kernel/library_index.dart';
|
||||
import 'package:kernel/src/dart_type_equivalence.dart';
|
||||
import 'package:kernel/type_algebra.dart';
|
||||
import 'package:kernel/type_environment.dart';
|
||||
import 'package:kernel/src/dart_type_equivalence.dart';
|
||||
import 'package:source_span/source_span.dart' show SourceLocation;
|
||||
import 'package:path/path.dart' as p;
|
||||
import 'package:source_span/source_span.dart' show SourceLocation;
|
||||
|
||||
import '../compiler/js_names.dart' as js_ast;
|
||||
import '../compiler/js_utils.dart' as js_ast;
|
||||
|
|
|
@ -6,19 +6,15 @@
|
|||
|
||||
import 'dart:async';
|
||||
|
||||
import 'package:_fe_analyzer_shared/src/messages/diagnostic_message.dart'
|
||||
show DiagnosticMessage, DiagnosticMessageHandler;
|
||||
|
||||
import 'package:_fe_analyzer_shared/src/messages/codes.dart'
|
||||
show Code, Message, PlainAndColorizedString;
|
||||
|
||||
import 'package:_fe_analyzer_shared/src/messages/diagnostic_message.dart'
|
||||
show DiagnosticMessage, DiagnosticMessageHandler;
|
||||
import 'package:dev_compiler/dev_compiler.dart';
|
||||
import 'package:dev_compiler/src/compiler/js_names.dart' as js_ast;
|
||||
import 'package:dev_compiler/src/compiler/module_builder.dart';
|
||||
import 'package:dev_compiler/src/js_ast/js_ast.dart' as js_ast;
|
||||
|
||||
import 'package:front_end/src/api_unstable/ddc.dart';
|
||||
|
||||
import 'package:kernel/ast.dart'
|
||||
show
|
||||
Block,
|
||||
|
|
|
@ -8,6 +8,8 @@ import 'dart:collection';
|
|||
|
||||
import 'package:_fe_analyzer_shared/src/messages/codes.dart'
|
||||
show Message, LocatedMessage;
|
||||
import 'package:_js_interop_checks/js_interop_checks.dart';
|
||||
import 'package:_js_interop_checks/src/transformations/js_util_optimizer.dart';
|
||||
import 'package:kernel/class_hierarchy.dart';
|
||||
import 'package:kernel/core_types.dart';
|
||||
import 'package:kernel/kernel.dart';
|
||||
|
@ -15,8 +17,6 @@ import 'package:kernel/reference_from_index.dart';
|
|||
import 'package:kernel/target/changed_structure_notifier.dart';
|
||||
import 'package:kernel/target/targets.dart';
|
||||
import 'package:kernel/transformations/track_widget_constructor_locations.dart';
|
||||
import 'package:_js_interop_checks/js_interop_checks.dart';
|
||||
import 'package:_js_interop_checks/src/transformations/js_util_optimizer.dart';
|
||||
|
||||
import 'constants.dart' show DevCompilerConstantsBackend;
|
||||
import 'kernel_helpers.dart';
|
||||
|
|
|
@ -10,14 +10,13 @@ import 'dart:io' show Directory, File, Platform, Process, stderr, stdout;
|
|||
import 'dart:isolate';
|
||||
|
||||
import 'package:build_integration/file_system/multi_root.dart';
|
||||
import 'package:dev_compiler/src/kernel/expression_compiler_worker.dart';
|
||||
import 'package:front_end/src/api_prototype/standard_file_system.dart';
|
||||
import 'package:front_end/src/compute_platform_binaries_location.dart';
|
||||
import 'package:path/path.dart' as p;
|
||||
import 'package:pedantic/pedantic.dart';
|
||||
import 'package:test/test.dart';
|
||||
|
||||
import 'package:dev_compiler/src/kernel/expression_compiler_worker.dart';
|
||||
|
||||
/// Verbose mode for debugging
|
||||
bool get verbose => false;
|
||||
|
||||
|
|
|
@ -11,8 +11,8 @@ import 'dart:io';
|
|||
|
||||
import 'package:modular_test/src/io_pipeline.dart';
|
||||
import 'package:modular_test/src/pipeline.dart';
|
||||
import 'package:modular_test/src/suite.dart';
|
||||
import 'package:modular_test/src/runner.dart';
|
||||
import 'package:modular_test/src/suite.dart';
|
||||
import 'package:package_config/package_config.dart';
|
||||
|
||||
String packageConfigJsonPath = '.dart_tool/package_config.json';
|
||||
|
|
|
@ -6,19 +6,19 @@
|
|||
|
||||
import 'dart:async';
|
||||
import 'dart:io';
|
||||
import 'package:front_end/src/api_unstable/ddc.dart' as fe;
|
||||
import 'package:kernel/core_types.dart';
|
||||
import 'package:kernel/kernel.dart';
|
||||
import 'package:kernel/class_hierarchy.dart';
|
||||
import 'package:kernel/type_environment.dart';
|
||||
import 'package:kernel/src/printer.dart';
|
||||
import 'package:kernel/target/targets.dart';
|
||||
import 'package:test/test.dart';
|
||||
|
||||
import 'package:dev_compiler/src/kernel/command.dart';
|
||||
import 'package:dev_compiler/src/kernel/nullable_inference.dart';
|
||||
import 'package:dev_compiler/src/kernel/js_typerep.dart';
|
||||
import 'package:dev_compiler/src/kernel/nullable_inference.dart';
|
||||
import 'package:dev_compiler/src/kernel/target.dart';
|
||||
import 'package:front_end/src/api_unstable/ddc.dart' as fe;
|
||||
import 'package:kernel/class_hierarchy.dart';
|
||||
import 'package:kernel/core_types.dart';
|
||||
import 'package:kernel/kernel.dart';
|
||||
import 'package:kernel/src/printer.dart';
|
||||
import 'package:kernel/target/targets.dart';
|
||||
import 'package:kernel/type_environment.dart';
|
||||
import 'package:test/test.dart';
|
||||
|
||||
const AstTextStrategy astTextStrategy = AstTextStrategy(
|
||||
includeLibraryNamesInTypes: true,
|
||||
|
|
|
@ -22,8 +22,8 @@ import 'dart:io';
|
|||
///
|
||||
/// The default test directory layout is documented in "test_suite.dart", above
|
||||
/// `factory StandardTestSuite.forDirectory`.
|
||||
import "package:test_runner/src/options.dart";
|
||||
import "package:test_runner/src/build_configurations.dart";
|
||||
import "package:test_runner/src/options.dart";
|
||||
import "package:test_runner/src/test_configurations.dart";
|
||||
|
||||
/// Runs all of the tests specified by the given command line [arguments].
|
||||
|
|
|
@ -7,10 +7,10 @@ import 'dart:convert';
|
|||
// CommandOutput.exitCode in subclasses of CommandOutput.
|
||||
import 'dart:io' as io;
|
||||
|
||||
import 'package:dart2js_tools/deobfuscate_stack_trace.dart';
|
||||
import 'package:status_file/expectation.dart';
|
||||
import 'package:test_runner/src/repository.dart';
|
||||
import 'package:test_runner/src/static_error.dart';
|
||||
import 'package:dart2js_tools/deobfuscate_stack_trace.dart';
|
||||
|
||||
import 'browser_controller.dart';
|
||||
import 'command.dart';
|
||||
|
|
|
@ -3,13 +3,15 @@
|
|||
// BSD-style license that can be found in the LICENSE file.
|
||||
|
||||
import 'dart:developer';
|
||||
import 'package:vm_service/vm_service.dart';
|
||||
|
||||
import 'package:test/test.dart';
|
||||
import 'package:vm_service/vm_service.dart';
|
||||
|
||||
import 'common/service_test_common.dart';
|
||||
import 'common/test_helper.dart';
|
||||
|
||||
const int LINE_A = 19;
|
||||
const int LINE_B = 25;
|
||||
const int LINE_A = 20;
|
||||
const int LINE_B = 26;
|
||||
|
||||
foo() {}
|
||||
|
||||
|
|
|
@ -6,8 +6,10 @@ import 'dart:async';
|
|||
import 'dart:convert';
|
||||
import 'dart:developer';
|
||||
import 'dart:io';
|
||||
import 'package:vm_service/vm_service.dart';
|
||||
|
||||
import 'package:test/test.dart';
|
||||
import 'package:vm_service/vm_service.dart';
|
||||
|
||||
import 'common/service_test_common.dart';
|
||||
import 'common/test_helper.dart';
|
||||
|
||||
|
|
|
@ -5,8 +5,9 @@
|
|||
library service_test_common;
|
||||
|
||||
import 'dart:async';
|
||||
import 'package:vm_service/vm_service.dart';
|
||||
|
||||
import 'package:test/test.dart';
|
||||
import 'package:vm_service/vm_service.dart';
|
||||
|
||||
typedef IsolateTest = Future<void> Function(
|
||||
VmService service, IsolateRef isolate);
|
||||
|
|
|
@ -7,11 +7,14 @@ library test_helper;
|
|||
import 'dart:async';
|
||||
import 'dart:convert';
|
||||
import 'dart:io' as io;
|
||||
|
||||
import 'package:process/process.dart';
|
||||
import 'package:vm_service/vm_service_io.dart';
|
||||
import 'package:vm_service/vm_service.dart';
|
||||
import 'package:test/test.dart';
|
||||
import 'package:vm_service/vm_service.dart';
|
||||
import 'package:vm_service/vm_service_io.dart';
|
||||
|
||||
import 'service_test_common.dart';
|
||||
|
||||
export 'service_test_common.dart' show IsolateTest, VMTest;
|
||||
|
||||
/// The extra arguments to use
|
||||
|
|
|
@ -2,8 +2,9 @@
|
|||
// 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 'package:vm_service/vm_service.dart';
|
||||
import 'package:test/test.dart';
|
||||
import 'package:vm_service/vm_service.dart';
|
||||
|
||||
import 'common/test_helper.dart';
|
||||
|
||||
int? thing1;
|
||||
|
|
|
@ -7,8 +7,8 @@ import 'dart:convert';
|
|||
import 'dart:developer';
|
||||
import 'dart:io' as io;
|
||||
|
||||
import 'package:vm_service/vm_service.dart';
|
||||
import 'package:test/test.dart';
|
||||
import 'package:vm_service/vm_service.dart';
|
||||
|
||||
import 'common/test_helper.dart';
|
||||
|
||||
|
|
|
@ -2,8 +2,8 @@
|
|||
// 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 'package:vm_service/vm_service.dart';
|
||||
import 'package:test/test.dart';
|
||||
import 'package:vm_service/vm_service.dart';
|
||||
|
||||
import 'common/test_helper.dart';
|
||||
|
||||
|
|
|
@ -2,8 +2,8 @@
|
|||
// 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 'package:vm_service/vm_service.dart';
|
||||
import 'package:test/test.dart';
|
||||
import 'package:vm_service/vm_service.dart';
|
||||
|
||||
import 'common/test_helper.dart';
|
||||
|
||||
|
|
|
@ -8,8 +8,9 @@ import 'dart:convert';
|
|||
import 'dart:io';
|
||||
import 'dart:math';
|
||||
import 'dart:typed_data';
|
||||
import 'package:vm_service/vm_service.dart';
|
||||
|
||||
import 'package:test/test.dart';
|
||||
import 'package:vm_service/vm_service.dart';
|
||||
|
||||
import 'common/test_helper.dart';
|
||||
|
||||
|
|
|
@ -6,8 +6,8 @@
|
|||
|
||||
import 'dart:developer';
|
||||
|
||||
import 'package:vm_service/vm_service.dart';
|
||||
import 'package:test/test.dart';
|
||||
import 'package:vm_service/vm_service.dart';
|
||||
|
||||
import 'common/service_test_common.dart';
|
||||
import 'common/test_helper.dart';
|
||||
|
|
|
@ -2,8 +2,8 @@
|
|||
// 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 'package:vm_service/vm_service.dart';
|
||||
import 'package:test/test.dart';
|
||||
import 'package:vm_service/vm_service.dart';
|
||||
|
||||
import 'common/test_helper.dart';
|
||||
|
||||
|
|
|
@ -2,8 +2,8 @@
|
|||
// 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 'package:vm_service/vm_service.dart';
|
||||
import 'package:test/test.dart';
|
||||
import 'package:vm_service/vm_service.dart';
|
||||
|
||||
import 'common/test_helper.dart';
|
||||
|
||||
|
|
|
@ -4,8 +4,9 @@
|
|||
|
||||
import 'dart:collection';
|
||||
|
||||
import 'package:vm_service/vm_service.dart';
|
||||
import 'package:test/test.dart';
|
||||
import 'package:vm_service/vm_service.dart';
|
||||
|
||||
import 'common/test_helper.dart';
|
||||
|
||||
class Foo {}
|
||||
|
|
|
@ -2,8 +2,8 @@
|
|||
// 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 'package:vm_service/vm_service.dart';
|
||||
import 'package:test/test.dart';
|
||||
import 'package:vm_service/vm_service.dart';
|
||||
|
||||
import 'common/test_helper.dart';
|
||||
|
||||
|
|
|
@ -2,8 +2,8 @@
|
|||
// 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 'package:vm_service/vm_service.dart';
|
||||
import 'package:test/test.dart';
|
||||
import 'package:vm_service/vm_service.dart';
|
||||
|
||||
const Map<String, dynamic> kNullInstance = {
|
||||
'type': '@Instance',
|
||||
|
|
|
@ -2,8 +2,8 @@
|
|||
// 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 'package:vm_service/vm_service.dart';
|
||||
import 'package:test/test.dart';
|
||||
import 'package:vm_service/vm_service.dart';
|
||||
|
||||
import 'common/test_helper.dart';
|
||||
|
||||
|
|
|
@ -3,8 +3,8 @@
|
|||
// BSD-style license that can be found in the LICENSE file.
|
||||
// VMOptions=--verbose_debug
|
||||
|
||||
import 'package:vm_service/vm_service.dart';
|
||||
import 'package:test/test.dart';
|
||||
import 'package:vm_service/vm_service.dart';
|
||||
|
||||
import 'common/service_test_common.dart';
|
||||
import 'common/test_helper.dart';
|
||||
|
|
|
@ -2,8 +2,8 @@
|
|||
// 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 'package:vm_service/vm_service.dart';
|
||||
import 'package:test/test.dart';
|
||||
import 'package:vm_service/vm_service.dart';
|
||||
|
||||
import 'common/test_helper.dart';
|
||||
|
||||
|
|
|
@ -8,8 +8,9 @@ import 'dart:convert';
|
|||
import 'dart:io';
|
||||
import 'dart:math';
|
||||
import 'dart:typed_data';
|
||||
import 'package:vm_service/vm_service.dart';
|
||||
|
||||
import 'package:test/test.dart';
|
||||
import 'package:vm_service/vm_service.dart';
|
||||
|
||||
import 'common/test_helper.dart';
|
||||
|
||||
|
|
Loading…
Reference in a new issue