File tree Expand file tree Collapse file tree 4 files changed +4
-4
lines changed
compiler/src/dotty/tools/dotc/tastyreflect
tests/run-custom-args/tasty-inspector Expand file tree Collapse file tree 4 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ class ReflectionCompilerInterface(val rootContext: core.Contexts.Context) extend
6565 def Context_requiredClass (self : Context )(path : String ): Symbol = self.requiredClass(path)
6666 def Context_requiredModule (self : Context )(path : String ): Symbol = self.requiredModule(path)
6767 def Context_requiredMethod (self : Context )(path : String ): Symbol = self.requiredMethod(path)
68- def Context_getJavaClassname (self : Context ): Option [String ] =
68+ def Context_javaCompilationUnitClassname (self : Context ): Option [String ] =
6969 self.compilationUnit match {
7070 case j : fromtasty.JavaCompilationUnit => Some (j.className)
7171 case _ => None
Original file line number Diff line number Diff line change @@ -474,7 +474,7 @@ class Reflection(private[scala] val internal: CompilerInterface) { self =>
474474 def requiredMethod (path : String ): Symbol = internal.Context_requiredMethod (self)(path)
475475
476476 /** Get Java class name if we've accidentally tried to reflect on a Java class. None returned if TASTy class. */
477- def getJavaClassname (): Option [String ] = internal.Context_getJavaClassname (self)
477+ def javaCompilationUnitClassname (): Option [String ] = internal.Context_javaCompilationUnitClassname (self)
478478
479479 }
480480
Original file line number Diff line number Diff line change @@ -163,7 +163,7 @@ trait CompilerInterface {
163163 def Context_requiredMethod (self : Context )(path : String ): Symbol
164164
165165 /** Get Java class name if we've accidentally tried to reflect on a Java class. None returned if TASTy class. */
166- def Context_getJavaClassname (self : Context ): Option [String ]
166+ def Context_javaCompilationUnitClassname (self : Context ): Option [String ]
167167
168168
169169 // /////////////
Original file line number Diff line number Diff line change @@ -21,4 +21,4 @@ class TestInspector() extends TastyInspector
2121
2222 protected def processCompilationUnit (reflect : Reflection )(root : reflect.Tree ): Unit =
2323 import reflect .{given ,_ }
24- gotJava = reflect.rootContext.getJavaClassname ()
24+ gotJava = reflect.rootContext.javaCompilationUnitClassname ()
You can’t perform that action at this time.
0 commit comments