@@ -83,7 +83,7 @@ class ReifyQuotes extends MacroTransformWithImplicits {
83
83
if (ctx.compilationUnit.needsStaging) super .run
84
84
85
85
protected def newTransformer (implicit ctx : Context ): Transformer =
86
- new Reifier (inQuote = false , null , 0 , new LevelInfo , new Embedded , ctx)
86
+ new Reifier (inQuote = false , null , new LevelInfo , new Embedded , ctx)
87
87
88
88
private class LevelInfo {
89
89
/** A map from locally defined symbols to the staging levels of their definitions */
@@ -115,14 +115,14 @@ class ReifyQuotes extends MacroTransformWithImplicits {
115
115
* @param embedded a list of embedded quotes (if `inSplice = true`) or splices (if `inQuote = true`
116
116
* @param rctx the contex in the destination lifted lambda
117
117
*/
118
- private class Reifier (inQuote : Boolean , val outer : Reifier , val level : Int , levels : LevelInfo ,
118
+ private class Reifier (inQuote : Boolean , val outer : Reifier , levels : LevelInfo ,
119
119
val embedded : Embedded , val rctx : Context ) extends ImplicitsTransformer {
120
120
import levels ._
121
121
122
122
/** A nested reifier for a quote (if `isQuote = true`) or a splice (if not) */
123
123
def nested (isQuote : Boolean )(implicit ctx : Context ): Reifier = {
124
124
val nestedEmbedded = if (quotationLevel > 1 || (quotationLevel == 1 && isQuote)) embedded else new Embedded
125
- new Reifier (isQuote, this , if (isQuote) quotationLevel + 1 else quotationLevel - 1 , levels, nestedEmbedded, ctx)
125
+ new Reifier (isQuote, this , levels, nestedEmbedded, ctx)
126
126
}
127
127
128
128
/** We are not in a `~(...)` or a `'(...)` */
0 commit comments