@@ -49,7 +49,7 @@ class Staging extends MacroTransformWithImplicits {
49
49
if (ctx.compilationUnit.needsStaging) super .run
50
50
51
51
protected def newTransformer (implicit ctx : Context ): Transformer =
52
- new Reifier (inQuote = false , null , 0 , new LevelInfo )
52
+ new Stager (inQuote = false , null , 0 , new LevelInfo )
53
53
54
54
private class LevelInfo {
55
55
/** A map from locally defined symbols to the staging levels of their definitions */
@@ -64,13 +64,13 @@ class Staging extends MacroTransformWithImplicits {
64
64
* and `l == -1` is code inside a top level splice (in an inline method).
65
65
* @param levels a stacked map from symbols to the levels in which they were defined
66
66
*/
67
- private class Reifier (inQuote : Boolean , val outer : Reifier , level : Int , levels : LevelInfo ) extends ImplicitsTransformer {
67
+ private class Stager (inQuote : Boolean , val outer : Stager , level : Int , levels : LevelInfo ) extends ImplicitsTransformer {
68
68
import levels ._
69
69
assert(level >= - 1 )
70
70
71
71
/** A nested reifier for a quote (if `isQuote = true`) or a splice (if not) */
72
- def nested (isQuote : Boolean )(implicit ctx : Context ): Reifier = {
73
- new Reifier (isQuote, this , if (isQuote) level + 1 else level - 1 , levels)
72
+ def nested (isQuote : Boolean )(implicit ctx : Context ): Stager = {
73
+ new Stager (isQuote, this , if (isQuote) level + 1 else level - 1 , levels)
74
74
}
75
75
76
76
/** A map from type ref T to expressions of type `quoted.Type[T]`".
@@ -272,7 +272,7 @@ class Staging extends MacroTransformWithImplicits {
272
272
*
273
273
* type T' = ~quoted.Type[T]
274
274
*
275
- * to the quoted text and rename T to T' in it. This is done later in `reify` via
275
+ * to the quoted text and rename T to T' in it. This is done later via
276
276
* `addTags`. `checkLevel` itself only records what needs to be done in the
277
277
* `typeTagOfRef` field of the current `Splice` structure.
278
278
*/
0 commit comments