[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:
Devon Carew 2022-02-11 00:50:31 +00:00 committed by Commit Bot
parent a6c96a4707
commit 7f026d6e46
5 changed files with 6 additions and 4 deletions

View file

@ -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

View file

@ -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.
///

View file

@ -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

View file

@ -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;

View file

@ -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';