@@ -66,12 +66,25 @@ trait Quotes { self: runtime.QuoteUnpickler & runtime.QuoteMatching =>
66
66
def asExprOf (using Type [X ]): Expr [X ]
67
67
end extension
68
68
69
- /** Low-level Typed AST API metaprogramming API.
70
- * This API does not have the static type guarantiees that `Expr` and `Type` provide.
69
+ /** Low-level Typed AST metaprogramming API.
70
+ *
71
+ * Provides all functionality related with AST based metaprogramming.
72
+ *
73
+ * Usage:
74
+ * ```scala
75
+ * def f(expr: Expr[Int])(using Quotes) =
76
+ * import quotes.reflect._
77
+ * val tree: Tree = Term.of(expr)
78
+ * ...
79
+ * ```
80
+ *
81
+ * See `reflectModule` for full API.
82
+ *
83
+ * @syntax markdown
71
84
*/
72
- val reflect : Reflection
85
+ val reflect : reflectModule
73
86
74
- /** AST reflection interface .
87
+ /** Low-level Typed AST metaprogramming API .
75
88
*
76
89
* Provides all functionality related with AST based metaprogramming.
77
90
*
@@ -184,7 +197,7 @@ trait Quotes { self: runtime.QuoteUnpickler & runtime.QuoteMatching =>
184
197
*
185
198
* @syntax markdown
186
199
*/
187
- trait Reflection { self : reflect.type =>
200
+ trait reflectModule { self : reflect.type =>
188
201
189
202
// /////////////
190
203
// TREES //
@@ -3013,7 +3026,7 @@ trait Quotes { self: runtime.QuoteUnpickler & runtime.QuoteMatching =>
3013
3026
* It is the meta-programmer's responsibility to provide exactly one corresponding definition by passing
3014
3027
* this symbol to the ValDef constructor.
3015
3028
*
3016
- * Note: Also see Reflection .let
3029
+ * Note: Also see reflect .let
3017
3030
*
3018
3031
* @param flags extra flags to with which the symbol should be constructed
3019
3032
* @param privateWithin the symbol within which this new method symbol should be private. May be noSymbol.
@@ -3768,7 +3781,7 @@ trait Quotes { self: runtime.QuoteUnpickler & runtime.QuoteMatching =>
3768
3781
// UTILS //
3769
3782
// /////////////
3770
3783
3771
- /** TASTy Reflect tree accumulator.
3784
+ /** Customizable Tree accumulator.
3772
3785
*
3773
3786
* Usage:
3774
3787
* ```
@@ -3871,7 +3884,7 @@ trait Quotes { self: runtime.QuoteUnpickler & runtime.QuoteMatching =>
3871
3884
end TreeAccumulator
3872
3885
3873
3886
3874
- /** TASTy Reflect tree traverser.
3887
+ /** Customizable tree traverser.
3875
3888
*
3876
3889
* Usage:
3877
3890
* ```
@@ -3891,7 +3904,7 @@ trait Quotes { self: runtime.QuoteUnpickler & runtime.QuoteMatching =>
3891
3904
3892
3905
end TreeTraverser
3893
3906
3894
- /** TASTy Reflect tree map .
3907
+ /** Customizable tree mapper .
3895
3908
*
3896
3909
* Usage:
3897
3910
* ```
0 commit comments