@@ -30,10 +30,10 @@ object QuoteContextImpl {
3030 val syntaxHighlight =
3131 if (ctx.settings.color.value == " always" ) SyntaxHighlight .ANSI
3232 else SyntaxHighlight .plain
33- show(using qctx)(tree.asInstanceOf [qctx.tasty .Tree ], syntaxHighlight)(using ctx.asInstanceOf [qctx.tasty .Context ])
33+ show(using qctx)(tree.asInstanceOf [qctx.reflect .Tree ], syntaxHighlight)(using ctx.asInstanceOf [qctx.reflect .Context ])
3434 }
3535
36- private def show (using qctx : QuoteContext )(tree : qctx.tasty .Tree , syntaxHighlight : SyntaxHighlight )(using qctx.tasty .Context ) =
36+ private def show (using qctx : QuoteContext )(tree : qctx.reflect .Tree , syntaxHighlight : SyntaxHighlight )(using qctx.reflect .Context ) =
3737 tree.showWith(syntaxHighlight)
3838
3939 private [dotty] def checkScopeId (id : ScopeId )(using Context ): Unit =
@@ -49,7 +49,7 @@ object QuoteContextImpl {
4949
5050class QuoteContextImpl private (ctx : Context ) extends QuoteContext :
5151
52- object tasty extends scala.tasty.Reflection , scala.internal.tasty.CompilerInterface :
52+ object reflect extends scala.tasty.Reflection , scala.internal.tasty.CompilerInterface :
5353
5454 def rootContext : Context = ctx
5555
@@ -67,11 +67,11 @@ class QuoteContextImpl private (ctx: Context) extends QuoteContext:
6767 def pos : Position = self.sourcePos
6868 def symbol : Symbol = self.symbol
6969 def showExtractors : String =
70- new ExtractorsPrinter [tasty .type ](tasty ).showTree(self)
70+ new ExtractorsPrinter [reflect .type ](reflect ).showTree(self)
7171 def show : String =
7272 self.showWith(SyntaxHighlight .plain)
7373 def showWith (syntaxHighlight : SyntaxHighlight ): String =
74- new SourceCodePrinter [tasty .type ](tasty )(syntaxHighlight).showTree(self)
74+ new SourceCodePrinter [reflect .type ](reflect )(syntaxHighlight).showTree(self)
7575 def isExpr : Boolean =
7676 self match
7777 case TermTypeTest (self) =>
@@ -1584,13 +1584,13 @@ class QuoteContextImpl private (ctx: Context) extends QuoteContext:
15841584 object TypeMethodsImpl extends TypeMethods :
15851585 extension (self : Type ):
15861586 def showExtractors : String =
1587- new ExtractorsPrinter [tasty .type ](tasty ).showType(self)
1587+ new ExtractorsPrinter [reflect .type ](reflect ).showType(self)
15881588
15891589 def show : String =
15901590 self.showWith(SyntaxHighlight .plain)
15911591
15921592 def showWith (syntaxHighlight : SyntaxHighlight ): String =
1593- new SourceCodePrinter [tasty .type ](tasty )(syntaxHighlight).showType(self)
1593+ new SourceCodePrinter [reflect .type ](reflect )(syntaxHighlight).showType(self)
15941594
15951595 def seal : scala.quoted.Type [_] =
15961596 new scala.internal.quoted.Type (Inferred (self), QuoteContextImpl .this .hashCode)
@@ -2164,11 +2164,11 @@ class QuoteContextImpl private (ctx: Context) extends QuoteContext:
21642164 extension (self : Constant ):
21652165 def value : Any = self.value
21662166 def showExtractors : String =
2167- new ExtractorsPrinter [tasty .type ](tasty ).showConstant(self)
2167+ new ExtractorsPrinter [reflect .type ](reflect ).showConstant(self)
21682168 def show : String =
21692169 self.showWith(SyntaxHighlight .plain)
21702170 def showWith (syntaxHighlight : SyntaxHighlight ): String =
2171- new SourceCodePrinter [tasty .type ](tasty )(syntaxHighlight).showConstant(self)
2171+ new SourceCodePrinter [reflect .type ](reflect )(syntaxHighlight).showConstant(self)
21722172 end extension
21732173 end ConstantMethodsImpl
21742174
@@ -2387,11 +2387,11 @@ class QuoteContextImpl private (ctx: Context) extends QuoteContext:
23872387 def children : List [Symbol ] = self.denot.children
23882388
23892389 def showExtractors : String =
2390- new ExtractorsPrinter [tasty .type ](tasty ).showSymbol(self)
2390+ new ExtractorsPrinter [reflect .type ](reflect ).showSymbol(self)
23912391 def show : String =
23922392 self.showWith(SyntaxHighlight .plain)
23932393 def showWith (syntaxHighlight : SyntaxHighlight ): String =
2394- new SourceCodePrinter [tasty .type ](tasty )(syntaxHighlight).showSymbol(self)
2394+ new SourceCodePrinter [reflect .type ](reflect )(syntaxHighlight).showSymbol(self)
23952395
23962396 end extension
23972397
@@ -2523,11 +2523,11 @@ class QuoteContextImpl private (ctx: Context) extends QuoteContext:
25232523 def | (that : Flags ): Flags = dotc.core.Flags .extension_|(self)(that)
25242524 def & (that : Flags ): Flags = dotc.core.Flags .extension_&(self)(that)
25252525 def showExtractors : String =
2526- new ExtractorsPrinter [tasty .type ](tasty ).showFlags(self)
2526+ new ExtractorsPrinter [reflect .type ](reflect ).showFlags(self)
25272527 def show : String =
25282528 self.showWith(SyntaxHighlight .plain)
25292529 def showWith (syntaxHighlight : SyntaxHighlight ): String =
2530- new SourceCodePrinter [tasty .type ](tasty )(syntaxHighlight).showFlags(self)
2530+ new SourceCodePrinter [reflect .type ](reflect )(syntaxHighlight).showFlags(self)
25312531 end extension
25322532 end FlagsMethodsImpl
25332533
@@ -2647,7 +2647,7 @@ class QuoteContextImpl private (ctx: Context) extends QuoteContext:
26472647 ctx1
26482648
26492649 val qctx1 = dotty.tools.dotc.quoted.QuoteContextImpl ()(using ctx1)
2650- .asInstanceOf [QuoteContext { val tasty : QuoteContextImpl .this .tasty .type }]
2650+ .asInstanceOf [QuoteContext { val reflect : QuoteContextImpl .this .reflect .type }]
26512651
26522652 val matcher = new Matcher .QuoteMatcher [qctx1.type ](qctx1) {
26532653 def patternHoleSymbol : Symbol = dotc.core.Symbols .defn.InternalQuotedPatterns_patternHole
@@ -2671,7 +2671,7 @@ class QuoteContextImpl private (ctx: Context) extends QuoteContext:
26712671 }
26722672 }
26732673
2674- end tasty
2674+ end reflect
26752675
26762676 private [this ] val hash = QuoteContextImpl .scopeId(using ctx)
26772677 override def hashCode : Int = hash
0 commit comments