Skip to content

Commit fa4eef6

Browse files
committed
Fix typo
1 parent ecfc0a2 commit fa4eef6

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

compiler/src/dotty/tools/dotc/core/StagingContext.scala

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ object StagingContext {
1414
/** A key to be used in a context property that tracks the quoteation stack.
1515
* Stack containing the QuoteContext references recieved by the surrounding quotes.
1616
*/
17-
private val QuoteQontextStack = new Property.Key[List[tpd.Tree]]
17+
private val QuoteContextStack = new Property.Key[List[tpd.Tree]]
1818

1919
/** All enclosing calls that are currently inlined, from innermost to outermost. */
2020
def level(implicit ctx: Context): Int =
@@ -26,9 +26,9 @@ object StagingContext {
2626

2727
/** Context with an incremented quotation level and pushes a refecence to a QuoteContext on the quote context stack */
2828
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)
3030
ctx.fresh.setProperty(QuotationLevel, level + 1)
31-
.setProperty(QuoteQontextStack, qctxRef :: old)
31+
.setProperty(QuoteContextStack, qctxRef :: old)
3232

3333
/** Context with a decremented quotation level. */
3434
def spliceContext(implicit ctx: Context): Context =
@@ -40,9 +40,9 @@ object StagingContext {
4040
def popQuoteContext()(implicit ctx: Context): (Option[tpd.Tree], Context) =
4141
val ctx1 = ctx.fresh.setProperty(QuotationLevel, level - 1)
4242
val head =
43-
ctx.property(QuoteQontextStack) match
43+
ctx.property(QuoteContextStack) match
4444
case Some(x :: xs) =>
45-
ctx1.setProperty(QuoteQontextStack, xs)
45+
ctx1.setProperty(QuoteContextStack, xs)
4646
Some(x)
4747
case _ =>
4848
None // Splice at level 0 or lower

0 commit comments

Comments
 (0)