Hi, in my compiler plugin, I need to get the scope of functions and variables. This should also say if they are defined inside a function.
e.g. for code like:
`
package compilerPlugin
object executeMain {
def main(args: Array[String]) {
def dosthg(): Unit ={
val cat = new Cat()
}
}
}`
I would like to get compilerPlugin.executeMain.main.dosthg.cat for the cat instance
and compilerPlugin.executeMain.main.dosthg for the function
At the moment, I found that using .symbol.fullNameString()
gives compilerPlugin.executeMain.cat but is there a way to get the functions in the path too?