On this page
Trait scala.quoted.TreeAccumulator
trait TreeAccumulator[X]
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 = ???
}
}
}
}
Supertypes | |
---|---|
Known subtypes |
Abstract methods
Source
Concrete methods
Source
Source
© 2002-2022 EPFL, with contributions from Lightbend.
Licensed under the Apache License, Version 2.0.
https://scala-lang.org/api/3.1.1/scala/quoted/Quotes$reflectModule$TreeAccumulator.html