For example, to get all the values and their types available on the macro invocation site? Or at least just the values from the current class? For instance:.
class A {
val v1 = 10
var v2 = "2"
def m {
val m3 = true
macroInvocation()
}
}
I looked into the Context and the Universe, but did not find any good methods.
The only solution I have found so far is to get a macro spanning the class / method (through the context) and look for the tree.
adamw source
share