File tree 2 files changed +6
-2
lines changed
compiler/src/dotty/tools/dotc/quoted 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -29,9 +29,9 @@ object QuoteContextImpl {
29
29
def showDecompiledTree (tree : tpd.Tree )(using Context ): String = {
30
30
val qctx : QuoteContextImpl = new QuoteContextImpl (MacroExpansion .context(tree))
31
31
if ctx.settings.color.value == " always" then
32
- qctx.reflect.TreeMethodsImpl .extension_showAnsiColored (tree)
32
+ qctx.reflect.TreeMethodsImpl .temporaryShowAnsiColored (tree)
33
33
else
34
- qctx.reflect.TreeMethodsImpl .extension_show (tree)
34
+ qctx.reflect.TreeMethodsImpl .temporaryShow (tree)
35
35
}
36
36
37
37
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 =>
140
140
protected val TreeMethodsImpl : TreeMethods
141
141
142
142
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
+
143
147
extension (self : Tree ):
144
148
/** Position in the source code */
145
149
def pos : Position
You can’t perform that action at this time.
0 commit comments