TreeTraverser
Customizable tree traverser.
Usage:
package scala.quoted
trait Snippet0 { self: runtime.QuoteUnpickler & scala.quoted.runtime.QuoteMatching & scala.quoted.Quotes =>
val QuoteUnpickler = self
val QuoteMatching = self
val Quotes = self
trait Snippet1 { self: Quotes.reflect.type /*Quotes.reflectModule*/ & Quotes.reflectModule =>
val reflect = self
val reflectModule = self
trait Snippet2 { self: reflectModule.TreeTraverser =>
val TreeTraverser = self
class MyTraverser extends TreeTraverser {
override def traverseTree(tree: Tree)(owner: Symbol): Unit = ???
}
}
}
}
- Source:
- Quotes.scala