I'm soliciting ideas from people who know the Scala compiler better than I do! How might I get nsc to invoke some custom code at some point (not too important when) after typer has run, but before compilation finishes? Are there any hooks available to me?
-
-
Hmm. Been thinking on this, and here's what I'd do: have some sort of global state that's cleared/initialized by a plugin that runs before macro expansion; macros report to that global state during expansion; plugin runs following expansion that triggers generation of the report
-
That's not far off my plan, though we can just keep the state in some global singleton object, and it doesn't need to be init'd... we can assume it gets cleaned up by the post-typer code that runs once for every compilation. (My use-case can assume compiles are successful).
- Show replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.