c26d5969f7
Adds support to the frontend server for producing javascript when compiling with a target model of dartdevc. This uses the ProgramCompiler and associated types from the dev_compiler package to output the kernel AST into a "bundle" format. dev_compiler: * Exposes additional types needed for JavaScript compilation. * Allows overriding CoreTypes instead of forcing it to be created from Component. This is require to support compilation of the partial Components created by the incremental compiler. * provides extraIndexedLibraries in Target class so the CoreTypes produced by the incremental compiler have indexed them. frontend_server: * When the target model is dartdev, JavaScript is output instead of kernel. For each Component we compile, we first compute the strongly connected components and produce a List of new Components to interop with the dev compiler. The file uri is used as module name. Change-Id: I4cc117b20671ffd48dd43f9786961c016a02d056 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/121400 Reviewed-by: Alexander Aprelev <aam@google.com> Reviewed-by: Jake Macdonald <jakemac@google.com> Reviewed-by: Nicholas Shahan <nshahan@google.com> Commit-Queue: Jonah Williams <jonahwilliams@google.com>
12 lines
644 B
Dart
12 lines
644 B
Dart
// Copyright (c) 2019, the Dart project authors. Please see the AUTHORS file
|
|
// 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.
|
|
|
|
// The dev_compiler does not have a publishable public API, instead this is
|
|
// intended for other consumers within the Dart SDK.
|
|
export 'src/kernel/target.dart' show DevCompilerTarget;
|
|
export 'src/kernel/compiler.dart' show ProgramCompiler;
|
|
export 'src/kernel/command.dart' show jsProgramToCode;
|
|
export 'src/compiler/shared_command.dart' show SharedCompilerOptions;
|
|
export 'src/compiler/module_builder.dart' show ModuleFormat;
|