Closed retronym closed 1 week ago
@SethTisue if you haven't started editing yet, I'll type it in. I think I saw Dotty has the same code, so I'll do that at the same time. I fell asleep last night when I was going to look at the async in repl ticket.
If you want to take it, feel free! If you lose interest or get stuck, I can take it over.
Somehow, I never lost interest.
Something like this:
The motivation is that this gets called indirectly by SBT ExtractApi.mkAnnotations in a codepath when assocs is empty but args is not. It prints the tree for the annotation argument in that case.
https://github.com/scala/scala/blob/5f4087b3aa029a30cb5a21fa003e180f000ce552/src/sbt-bridge/scala/tools/xsbt/ExtractAPI.scala#L259-L262
I can't remember what flavour of annotation ends up with this representation. Would be good to relate this to a particular source construct to complete our mental picture.