v2.0.0-pre3 - AST Building Fix, Transform and AST Snapshot Tests
Pre-release
Pre-release
- 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 ifenterContext
isn't implemented - Changed
JobParameters
to an interface (the subclasses stay the same) - Renamed
CSTTransformerTestTree
and related files toCSTTransformerTreeTest
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
andtestLayoutBindingSearch2
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