Skip to content
This repository has been archived by the owner on Sep 12, 2019. It is now read-only.

Releases: dart-archive/angular_ast

0.3.0

15 May 22:25
Compare
Choose a tag to compare
  • 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- and bind- parsing is enabled.
  • Allow for parsing of % in style bindings.
  • Added parsing of mustaches in plain-attribute values.

0.2.0

10 Jan 08:02
Compare
Choose a tag to compare

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 or StarAst)
  • 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
    special PipeExpression.
  • Added TemplateAstVisitor and two examples:
    • HumanizingTemplateAstVisitor
    • IdentityTemplateAstVisitor
  • De-sugars the *ngFor-style micro expressions; see micro/*_test.dart.
    • Added attributes as a valid property of EmbeddedTemplateAst

Prevew: 0.1.0-dev

14 Dec 01:14
Compare
Choose a tag to compare
Prevew: 0.1.0-dev Pre-release
Pre-release

An unofficial preview release of the angular_ast package.