angular_ast 0.2.0
angular_ast: ^0.2.0 copied to clipboard
Parser and utilities for AngularDart templates
Changelog #
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.BananaAstorStarAst) - 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
TemplateAstVisitorand two examples:HumanizingTemplateAstVisitorIdentityTemplateAstVisitor
- De-sugars the
*ngFor-style micro expressions; seemicro/*_test.dart.- Added
attributesas a valid property ofEmbeddedTemplateAst
- Added
0.1.0 #
- Initial commit