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>