@@ -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 , ctx )
52
+ new Reifier (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 */
@@ -63,24 +63,16 @@ class Staging extends MacroTransformWithImplicits {
63
63
* The initial level is 0, a level `l` where `l > 0` implies code has been quoted `l` times
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
- * @param rctx the contex in the destination lifted lambda
67
66
*/
68
- private class Reifier (inQuote : Boolean , val outer : Reifier , val level : Int , levels : LevelInfo ,
69
- val rctx : Context ) extends ImplicitsTransformer {
67
+ private class Reifier (inQuote : Boolean , val outer : Reifier , level : Int , levels : LevelInfo ) extends ImplicitsTransformer {
70
68
import levels ._
71
69
assert(level >= - 1 )
72
70
73
71
/** A nested reifier for a quote (if `isQuote = true`) or a splice (if not) */
74
72
def nested (isQuote : Boolean )(implicit ctx : Context ): Reifier = {
75
- new Reifier (isQuote, this , if (isQuote) level + 1 else level - 1 , levels, ctx )
73
+ new Reifier (isQuote, this , if (isQuote) level + 1 else level - 1 , levels)
76
74
}
77
75
78
- /** We are in a `~(...)` context that is not shadowed by a nested `'(...)` */
79
- def inSplice : Boolean = outer != null && ! inQuote
80
-
81
- /** We are not in a `~(...)` or a `'(...)` */
82
- def isRoot : Boolean = outer == null
83
-
84
76
/** A map from type ref T to expressions of type `quoted.Type[T]`".
85
77
* These will be turned into splices using `addTags` and represent type variables
86
78
* that can be possibly healed.
0 commit comments