To understand / reproduce this, you should use paulp's :power mode in the scala console:
scala
> :power
> :phase parser // will show us ASTs just after parsing
> val Some(List(ast)) = intp.parse("@public def str = self.toString")
> nodeToString(ast)
> val DefDef(mods, name, tparams, vparamss, tpt, rhs) = ast // play with extractors to explore the tree and its properties.
To understand / reproduce this, you should use paulp's :power mode in the scala console:
scala > :power > :phase parser // will show us ASTs just after parsing > val Some(List(ast)) = intp.parse("@public def str = self.toString") > nodeToString(ast) > val DefDef(mods, name, tparams, vparamss, tpt, rhs) = ast // play with extractors to explore the tree and its properties.