I'm writing a Scala compiler plugin for the refchecks phase.
How do I access the symbol that a "super" call refers to, given the symbol of the callsite?
For example, in
trait A {
def m() {}
}
trait B extends A {
def m() { super.m() }
}
knowing the symbol for the callsite super.m()
, I would like to get the symbol for trait A
.