You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To easily know which extractors are needed, the `showExtractors` method on a
62
-
`quotes.reflect.Term` returns the string representation of the extractors.
61
+
We can easily know which extractors are needed using `Printer.TreeStructure.show`, which returns the string representation the structure of the tree. Other printers can also be found in the `Printer` module.
62
+
63
+
```scala
64
+
xTree.show(usingPrinter.TreeStructure)
65
+
// or
66
+
Printer.TreeStructure.show(xTree)
67
+
```
68
+
63
69
64
70
The methods `quotes.reflect.Term.{asExpr, asExprOf}` provide a way to go back to a `quoted.Expr`.
0 commit comments