Skip to content

Commit b4d5272

Browse files
nshahanCommit Queue
authored andcommitted
[ddc] Move command.dart library
From: lib/src/kernel/command.dart To: lib/src/command/command.dart This is a step towards organizing the code from shared_command.dart and eventually deleting it. Change-Id: I1ca9fcfd3d7d74511957d516c01544f4a68e4e89 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/388050 Reviewed-by: Nate Biggs <[email protected]> Reviewed-by: Mark Zhou <[email protected]> Reviewed-by: Sigmund Cherem <[email protected]> Commit-Queue: Nicholas Shahan <[email protected]>
1 parent 45b1612 commit b4d5272

File tree

12 files changed

+24
-23
lines changed

12 files changed

+24
-23
lines changed

pkg/dev_compiler/lib/ddc.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ import 'package:bazel_worker/bazel_worker.dart';
1616
import 'package:kernel/ast.dart' show clearDummyTreeNodesParentPointer;
1717

1818
import 'src/command/arguments.dart';
19+
import 'src/command/command.dart';
1920
import 'src/command/result.dart';
2021
import 'src/compiler/shared_command.dart';
21-
import 'src/kernel/command.dart';
2222
import 'src/kernel/expression_compiler_worker.dart';
2323

2424
/// The internal entry point for the Dart Dev Compiler.

pkg/dev_compiler/lib/dev_compiler.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44

55
// The dev_compiler does not have a publishable public API, instead this is
66
// intended for other consumers within the Dart SDK.
7+
export 'src/command/command.dart' show jsProgramToCode;
78
export 'src/command/options.dart' show Options;
89
export 'src/compiler/module_builder.dart'
910
show ModuleFormat, parseModuleFormat, libraryUriToJsIdentifier;
10-
export 'src/kernel/command.dart' show jsProgramToCode;
1111
export 'src/kernel/compiler.dart' show Compiler, ProgramCompiler;
1212
export 'src/kernel/compiler_new.dart' show LibraryBundleCompiler;
1313
export 'src/kernel/expression_compiler.dart' show ExpressionCompiler;

pkg/dev_compiler/lib/src/kernel/command.dart renamed to pkg/dev_compiler/lib/src/command/command.dart

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file
1+
// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file
22
// for details. All rights reserved. Use of this source code is governed by a
33
// BSD-style license that can be found in the LICENSE file.
44

@@ -19,21 +19,21 @@ import 'package:kernel/text/debug_printer.dart';
1919
import 'package:path/path.dart' as p;
2020
import 'package:source_maps/source_maps.dart' show SourceMapBuilder;
2121

22-
import '../command/arguments.dart';
23-
import '../command/options.dart';
24-
import '../command/result.dart';
2522
import '../compiler/js_names.dart' as js_ast;
2623
import '../compiler/module_builder.dart';
2724
import '../compiler/shared_command.dart';
2825
import '../js_ast/js_ast.dart' as js_ast;
2926
import '../js_ast/js_ast.dart' show js;
3027
import '../js_ast/source_map_printer.dart' show SourceMapPrintingContext;
31-
import 'compiler.dart';
32-
import 'compiler_new.dart';
33-
import 'module_metadata.dart';
34-
import 'module_symbols.dart';
35-
import 'module_symbols_collector.dart';
36-
import 'target.dart';
28+
import '../kernel/compiler.dart';
29+
import '../kernel/compiler_new.dart';
30+
import '../kernel/module_metadata.dart';
31+
import '../kernel/module_symbols.dart';
32+
import '../kernel/module_symbols_collector.dart';
33+
import '../kernel/target.dart';
34+
import 'arguments.dart';
35+
import 'options.dart';
36+
import 'result.dart';
3737

3838
const _binaryName = 'dartdevc';
3939

pkg/dev_compiler/lib/src/kernel/expression_compiler_worker.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@ import 'package:kernel/src/tool/find_referenced_libraries.dart'
1919
show duplicateLibrariesReachable;
2020
import 'package:kernel/target/targets.dart' show TargetFlags;
2121

22+
import '../command/command.dart';
2223
import '../command/options.dart' show Options;
2324
import '../compiler/js_names.dart';
2425
import '../compiler/module_builder.dart' show ModuleFormat, parseModuleFormat;
2526
import 'asset_file_system.dart';
26-
import 'command.dart';
2727
import 'compiler.dart' show ProgramCompiler;
2828
import 'expression_compiler.dart' show ExpressionCompiler;
2929
import 'target.dart' show DevCompilerTarget;

pkg/dev_compiler/test/expression_compiler/test_compiler.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ import 'dart:async';
66
import 'dart:convert';
77
import 'dart:io' show File;
88

9+
import 'package:dev_compiler/src/command/command.dart';
910
import 'package:dev_compiler/src/command/options.dart' show Options;
10-
import 'package:dev_compiler/src/kernel/command.dart';
1111
import 'package:dev_compiler/src/kernel/compiler.dart' show ProgramCompiler;
1212
import 'package:dev_compiler/src/kernel/expression_compiler.dart'
1313
show ExpressionCompiler;

pkg/dev_compiler/test/memory_compiler.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
// BSD-style license that can be found in the LICENSE file.
44

55
import 'package:dev_compiler/dev_compiler.dart';
6+
import 'package:dev_compiler/src/command/command.dart';
67
import 'package:dev_compiler/src/compiler/shared_command.dart';
78
import 'package:dev_compiler/src/js_ast/js_ast.dart';
8-
import 'package:dev_compiler/src/kernel/command.dart';
99
import 'package:front_end/src/api_unstable/ddc.dart' as fe;
1010
import 'package:kernel/target/targets.dart';
1111

pkg/dev_compiler/test/module_symbols/module_symbols_test_shared.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44

55
import 'dart:io' show Directory, File;
66

7+
import 'package:dev_compiler/src/command/command.dart';
78
import 'package:dev_compiler/src/command/options.dart' show Options;
89
import 'package:dev_compiler/src/compiler/module_builder.dart'
910
show ModuleFormat;
10-
import 'package:dev_compiler/src/kernel/command.dart';
1111
import 'package:dev_compiler/src/kernel/compiler.dart' show ProgramCompiler;
1212
import 'package:dev_compiler/src/kernel/module_symbols.dart';
1313
import 'package:kernel/ast.dart' show Component, Library;

pkg/dev_compiler/test/nullable_inference_test.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ import 'dart:async';
66
import 'dart:convert' show jsonEncode;
77
import 'dart:io';
88

9-
import 'package:dev_compiler/src/command/options.dart';
10-
import 'package:dev_compiler/src/kernel/command.dart'
9+
import 'package:dev_compiler/src/command/command.dart'
1110
show addGeneratedVariables, getSdkPath;
11+
import 'package:dev_compiler/src/command/options.dart';
1212
import 'package:dev_compiler/src/kernel/js_typerep.dart';
1313
import 'package:dev_compiler/src/kernel/nullable_inference.dart';
1414
import 'package:dev_compiler/src/kernel/target.dart';

pkg/dev_compiler/test/shared_test_options.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
// for details. All rights reserved. Use of this source code is governed by a
33
// BSD-style license that can be found in the LICENSE file.
44

5+
import 'package:dev_compiler/src/command/command.dart'
6+
show addGeneratedVariables;
57
import 'package:dev_compiler/src/compiler/module_builder.dart'
68
show ModuleFormat;
7-
import 'package:dev_compiler/src/kernel/command.dart'
8-
show addGeneratedVariables;
99
import 'package:dev_compiler/src/kernel/target.dart' show DevCompilerTarget;
1010
import 'package:front_end/src/api_unstable/ddc.dart' as fe;
1111
import 'package:kernel/ast.dart' show Component;

pkg/dev_compiler/test/sourcemap/sourcemaps_suite.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import 'dart:io';
66

77
import 'package:dev_compiler/src/command/arguments.dart';
8-
import 'package:dev_compiler/src/kernel/command.dart';
8+
import 'package:dev_compiler/src/command/command.dart';
99
import 'package:front_end/src/api_unstable/ddc.dart' as fe;
1010
import 'package:sourcemap_testing/src/stepping_helper.dart';
1111
import 'package:testing/testing.dart';

0 commit comments

Comments
 (0)