This repository has been archived by the owner on Sep 12, 2019. It is now read-only.
Releases: dart-archive/angular_ast
Releases · dart-archive/angular_ast
0.3.0
- Tokenizer and Parser split to multi-level to accommodate to better support differing parsing options (ex: fail-fast and recover-mode).
- Recovery-mode implemented that recovers from errors while accumulating errors. CLI command to demonstrate this added in test/ast_cli_tester.dart
- Errors made more lightweight and uses ErrorCodes than raw string.
- Expression parsing and Desugaring now decoupled from each other. They're separate visitors that can be applied to the ast. Ideal ordering is desugar first, then expression parse.
<!DOCTYPE>
parsing no longer crashes document.on-
andbind-
parsing is enabled.- Allow for parsing of % in style bindings.
- Added parsing of mustaches in plain-attribute values.
0.2.0
0.2.0
- Add an experimental flag to
NgParser
(toolFriendlyAstOrigin
) which
wraps de-sugared AST origins in another synthetic AST that represents
the intermediate value (i.e.BananaAst
orStarAst
) - Add support for parsing expressions, including de-sugaring pipes. When
parsing templates, expression AST objects automatically use the Dart
expression parser.
new ExpressionAst.parse('some + dart + expression')
- One exception: The
|
operator is not respected, as it is used for
pipes in AngularDart. Instead, this operator is converted into a
specialPipeExpression
. - Added
TemplateAstVisitor
and two examples:HumanizingTemplateAstVisitor
IdentityTemplateAstVisitor
- De-sugars the
*ngFor
-style micro expressions; seemicro/*_test.dart
.- Added
attributes
as a valid property ofEmbeddedTemplateAst
- Added
Prevew: 0.1.0-dev
An unofficial preview release of the angular_ast
package.