mirror of
https://github.com/dart-lang/sdk
synced 2024-09-05 08:24:39 +00:00
[dev_compiler] remove the dep on package:cli_util
Change-Id: I34c17dc76a0c608ac3536bfdf2c0e39bb8daa6c1 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/232424 Auto-Submit: Devon Carew <devoncarew@google.com> Reviewed-by: Nicholas Shahan <nshahan@google.com> Commit-Queue: Nicholas Shahan <nshahan@google.com>
This commit is contained in:
parent
a6c96a4707
commit
7f026d6e46
|
@ -22,6 +22,7 @@ linter:
|
|||
rules:
|
||||
# Not enforced by lints at any version.
|
||||
- always_declare_return_types
|
||||
- depend_on_referenced_packages
|
||||
- directives_ordering
|
||||
- omit_local_variable_types
|
||||
- prefer_single_quotes
|
||||
|
|
|
@ -10,7 +10,6 @@ import 'dart:io';
|
|||
|
||||
import 'package:args/args.dart';
|
||||
import 'package:build_integration/file_system/multi_root.dart';
|
||||
import 'package:cli_util/cli_util.dart' show getSdkPath;
|
||||
import 'package:front_end/src/api_unstable/ddc.dart' as fe;
|
||||
import 'package:kernel/binary/ast_to_binary.dart' as kernel show BinaryPrinter;
|
||||
import 'package:kernel/class_hierarchy.dart';
|
||||
|
@ -837,6 +836,9 @@ String defaultSdkSummaryPath({bool soundNullSafety}) {
|
|||
|
||||
final defaultLibrarySpecPath = p.join(getSdkPath(), 'lib', 'libraries.json');
|
||||
|
||||
/// Return the path to the runtime Dart SDK.
|
||||
String getSdkPath() => p.dirname(p.dirname(Platform.resolvedExecutable));
|
||||
|
||||
/// Returns the absolute path to the default `package_config.json` file, or
|
||||
/// `null` if one could not be found.
|
||||
///
|
||||
|
|
|
@ -14,7 +14,6 @@ dependencies:
|
|||
bazel_worker: any
|
||||
build_integration:
|
||||
path: ../build_integration
|
||||
cli_util: any
|
||||
collection: ^1.15.0
|
||||
front_end:
|
||||
path: ../front_end
|
||||
|
|
|
@ -9,9 +9,9 @@ import 'dart:convert';
|
|||
import 'dart:io' show Directory, File, Platform;
|
||||
|
||||
import 'package:browser_launcher/browser_launcher.dart' as browser;
|
||||
import 'package:cli_util/cli_util.dart';
|
||||
import 'package:dev_compiler/dev_compiler.dart';
|
||||
import 'package:dev_compiler/src/compiler/module_builder.dart';
|
||||
import 'package:dev_compiler/src/kernel/command.dart';
|
||||
import 'package:dev_compiler/src/kernel/module_metadata.dart';
|
||||
import 'package:front_end/src/api_unstable/ddc.dart' as fe;
|
||||
import 'package:front_end/src/compute_platform_binaries_location.dart' as fe;
|
||||
|
|
|
@ -4,8 +4,8 @@
|
|||
|
||||
// @dart = 2.9
|
||||
|
||||
import 'package:cli_util/cli_util.dart';
|
||||
import 'package:dev_compiler/dev_compiler.dart';
|
||||
import 'package:dev_compiler/src/kernel/command.dart';
|
||||
import 'package:front_end/src/api_unstable/ddc.dart';
|
||||
import 'package:front_end/src/compute_platform_binaries_location.dart';
|
||||
import 'package:front_end/src/fasta/incremental_serializer.dart';
|
||||
|
|
Loading…
Reference in a new issue