part
directives, those are still crawled in alphabetical order since we can't currently get the original source order from the mirror system.code_transformers
and update the analyzer
and code_transformers
dependencies.path.url
in the transformer.String
, int
, double
, or bool
are now allowed. The evaluated value is what will be inlined in the bootstrap file in this case.InitializePluginTransformer
is gone in favor of a new InitializerPlugin
class which you can pass a list of to the InitializeTransformer
. These plugins now have access to the fully resolved ast nodes and can directly control what is output in the bootstrap file.Lots of transformer updates:
new_entry_point
option is gone. The bootstrapped file will now always just be the original name but .dart
will be replaced with .initialize.dart
.html_entry_point
option is gone, and the file extension is now used to detect if it is an html or dart file. You should no longer list the dart file contained in the html file. Effectively resolves 13.entry_point
option has been renamed entry_points
and now accepts either a single file path or list of file paths. Additionally, it now supports Glob syntax so many files can be selected at once. Resolves 19.InitializePluginTransformer
class in plugin_transformer.dart
which provides a base transformer class which can be extended to perform custom transformations for annotations. These transformers should be included after the main initialize
transformer and work by parsing the bootstrap file so the program doesn't need to be re-analyzed.LibraryIdentifier
to initialize
instead of just a Symbol
. This provides the package and path to the library in addition to the symbol so that paths can be normalized.entryPoint
and newEntryPoint
transformer options were renamed to entry_point
and new_entry_pont
.
Added html_entry_point
option to the transformer. This will search that file for any script tag whose src is entry_point
and rewrite it to point at the bootstrapped file new_entry_point
.
Top level properties and static class properties are now supported in initializer constructors, as well as List and Map literals, 5.
Quick fix for the transformer on windows.
Initial beta release. There is one notable missing feature in the release regarding constructor arguments, see 5.