I would like to catch the name of the variable to which the output of my macro is assigned. Just like projectin build.sbt. I would prefer to use this solution (library) if there is one, because it looks like a normal general use case.
Here is a small example
val someValue = myMacro()
and as an output, myMacro()I would like to get a string "someValue".
source
share