- About Scala
- Documentation
- Code Examples
- Software
- Scala Developers
staged rewriting via compiler plugins
Mon, 2009-06-15, 13:53
Hi,
I've read SID 2 (Phase and Plug-In Initialization), and was wondering
whether visiting the parse phase after a custom plugin phase is supported.
The motivation being a custom plugin that generates Scala snippets (say,
from annotations). If compilation could be restarted for that compilation
unit, the custom plugin could be dispensed with performing name resolution,
typing, etc. for the snippets it generated.
On the other hand, I wouldn't like to implement the generation of snippets
with a pre-processor, because then I can't access type information.
regards,