@@ -14,7 +14,7 @@ object StagingContext {
14
14
/** A key to be used in a context property that tracks the quoteation stack.
15
15
* Stack containing the QuoteContext references recieved by the surrounding quotes.
16
16
*/
17
- private val QuoteQontextStack = new Property .Key [List [tpd.Tree ]]
17
+ private val QuoteContextStack = new Property .Key [List [tpd.Tree ]]
18
18
19
19
/** All enclosing calls that are currently inlined, from innermost to outermost. */
20
20
def level (implicit ctx : Context ): Int =
@@ -26,9 +26,9 @@ object StagingContext {
26
26
27
27
/** Context with an incremented quotation level and pushes a refecence to a QuoteContext on the quote context stack */
28
28
def pushQuoteContext (qctxRef : tpd.Tree )(implicit ctx : Context ): Context =
29
- val old = ctx.property(QuoteQontextStack ).getOrElse(List .empty)
29
+ val old = ctx.property(QuoteContextStack ).getOrElse(List .empty)
30
30
ctx.fresh.setProperty(QuotationLevel , level + 1 )
31
- .setProperty(QuoteQontextStack , qctxRef :: old)
31
+ .setProperty(QuoteContextStack , qctxRef :: old)
32
32
33
33
/** Context with a decremented quotation level. */
34
34
def spliceContext (implicit ctx : Context ): Context =
@@ -40,9 +40,9 @@ object StagingContext {
40
40
def popQuoteContext ()(implicit ctx : Context ): (Option [tpd.Tree ], Context ) =
41
41
val ctx1 = ctx.fresh.setProperty(QuotationLevel , level - 1 )
42
42
val head =
43
- ctx.property(QuoteQontextStack ) match
43
+ ctx.property(QuoteContextStack ) match
44
44
case Some (x :: xs) =>
45
- ctx1.setProperty(QuoteQontextStack , xs)
45
+ ctx1.setProperty(QuoteContextStack , xs)
46
46
Some (x)
47
47
case _ =>
48
48
None // Splice at level 0 or lower
0 commit comments