TreeAccumulator
Customizable Tree accumulator.
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[X] { self: reflectModule.TreeAccumulator[X] =>
val TreeAccumulator = self
class MyTreeAccumulator[X] extends TreeAccumulator[X] {
def foldTree(x: X, tree: Tree)(owner: Symbol): X = ???
}
}
}
}
- Source:
- Quotes.scala