From 1380a8c17f25be77f630d4f8f75d9e4d4fafdb2f Mon Sep 17 00:00:00 2001 From: Nicolas Stucki Date: Mon, 23 Nov 2020 12:20:21 +0100 Subject: [PATCH] Update TreeAccumulator/TreeTraverser docs --- library/src/scala/quoted/QuoteContext.scala | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/library/src/scala/quoted/QuoteContext.scala b/library/src/scala/quoted/QuoteContext.scala index 387583f11fba..f545fe91831d 100644 --- a/library/src/scala/quoted/QuoteContext.scala +++ b/library/src/scala/quoted/QuoteContext.scala @@ -3413,9 +3413,8 @@ trait QuoteContext { self: runtime.QuoteUnpickler & runtime.QuoteMatching => * * Usage: * ``` - * class MyTreeAccumulator[R <: scala.tasty.Reflection & Singleton](val reflect: R) - * extends scala.tasty.reflect.TreeAccumulator[X] { - * import reflect._ + * import qctx.reflect._ + * class MyTreeAccumulator extends TreeAccumulator[X] { * def foldTree(x: X, tree: Tree)(owner: Symbol): X = ... * } * ``` @@ -3515,9 +3514,8 @@ trait QuoteContext { self: runtime.QuoteUnpickler & runtime.QuoteMatching => * * Usage: * ``` - * class MyTraverser[R <: scala.tasty.Reflection & Singleton](val reflect: R) - * extends scala.tasty.reflect.TreeTraverser { - * import reflect._ + * import qctx.relfect._ + * class MyTraverser extends TreeTraverser { * override def traverseTree(tree: Tree)(owner: Symbol): Unit = ... * } * ```