nabl2-custom-analysis-unit-hook gives non-desugared ast
To get the desugared ast in the custom analysis unit hook, you have to manually desugar again.
This is ineffecient, and also creates new terms, which are not identical to the terms created during the first desugaring.
nabl2-custom-analysis-unit-hook: (resource, ast, customInitialResult) -> customUnitResult with ast' := <desugar-before-analysis>ast; customUnitResult := (resource, ast')
Spoofax version:Submitted by Daco Harkes on 18 January 2017 at 19:23
Eclipse: org.eclipse.platform.ide 4.6.2.M20161124-1400 Spoofax: org.metaborg.spoofax.eclipse 22.214.171.12470118-154836-master System: Mac OS X x86_64 10.12.2
Thia is fixed in the patch for issue 26, so I'm closing this issue as well.
Log in to post comments