File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
compiler/src/dotty/tools/dotc/quoted Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -29,9 +29,9 @@ object QuoteContextImpl {
2929 def showDecompiledTree (tree : tpd.Tree )(using Context ): String = {
3030 val qctx : QuoteContextImpl = new QuoteContextImpl (MacroExpansion .context(tree))
3131 if ctx.settings.color.value == " always" then
32- qctx.reflect.TreeMethodsImpl .extension_showAnsiColored (tree)
32+ qctx.reflect.TreeMethodsImpl .temporaryShowAnsiColored (tree)
3333 else
34- qctx.reflect.TreeMethodsImpl .extension_show (tree)
34+ qctx.reflect.TreeMethodsImpl .temporaryShow (tree)
3535 }
3636
3737 private [dotty] def checkScopeId (id : ScopeId )(using Context ): Unit =
Original file line number Diff line number Diff line change @@ -140,6 +140,10 @@ trait Reflection { reflection =>
140140 protected val TreeMethodsImpl : TreeMethods
141141
142142 trait TreeMethods {
143+ // Dodo: Drop once extension methods have stabilized
144+ def temporaryShowAnsiColored (self : Tree ): String = self.showAnsiColored
145+ def temporaryShow (self : Tree ): String = self.show
146+
143147 extension (self : Tree ):
144148 /** Position in the source code */
145149 def pos : Position
You can’t perform that action at this time.
0 commit comments