Skip to content

v2.0.0-pre3 - AST Building Fix, Transform and AST Snapshot Tests

Pre-release
Pre-release
Compare
Choose a tag to compare
@douira douira released this 29 Nov 18:44
· 119 commits to main since this release
6eb7754
  • Fix AST Building of layout qualifiers. Previously if there were multiple they would be parsed as a sequence expressions instead of a list of multiple. This has been fixed in the ASTBuilder but not the parser since it would likely incur a performance cost due to making the parsing of layout qualifiers context-sensitive.
  • Fixed ASTListenerVisitor going into infinite recursion if enterContext isn't implemented
  • Changed JobParameters to an interface (the subclasses stay the same)
  • Renamed CSTTransformerTestTree and related files to CSTTransformerTreeTest for consistency
  • Added a snapshot test that ensures the structure of the AST is correct. This differs from reprint tests since they may miss situations where the AST is wrong but the output is correct.
  • Added a reprint (and thereby a AST snapshot test case) for layout qualifiers with multiple parts
  • Added transformation tests testLayoutBindingSearch and testLayoutBindingSearch2 that demonstrate AST traversal and analysis. They also fail if the AST doesn't correctly represent layout qualifiers with multiple parts.

Full Changelog: v2.0.0-pre2...v2.0.0-pre3