Skip to content

Commit 7e243b0

Browse files
committed
Reflecting requested changes
1 parent 484ac90 commit 7e243b0

File tree

5 files changed

+4
-5
lines changed

5 files changed

+4
-5
lines changed

compiler/src/dotty/tools/dotc/tastyreflect/ReflectionCompilerInterface.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1247,7 +1247,7 @@ class ReflectionCompilerInterface(val rootContext: core.Contexts.Context) extend
12471247

12481248
def TypeRef_isOpaqueAlias(self: TypeRef)(given Context): Boolean = self.symbol.isOpaqueAlias
12491249

1250-
def TypeRef_opaqueAliasWrappedType(self: TypeRef)(given Context): Type = self.translucentSuperType
1250+
def TypeRef_translucentSuperType(self: TypeRef)(given Context): Type = self.translucentSuperType
12511251

12521252
type NamedTermRef = Types.NamedType
12531253

compiler/test/dotty/tools/dotc/BootstrappedOnlyCompilationTests.scala

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,6 @@ class BootstrappedOnlyCompilationTests extends ParallelTesting {
129129
compileFilesInDir("tests/run-staging", withStagingOptions),
130130
compileFilesInDir("tests/run-custom-args/tasty-inspector", withTastyInspectorOptions),
131131
compileDir("tests/run-custom-args/tasty-interpreter", withTastyInspectorOptions),
132-
compileFile("tests/run-custom-args/i8163.scala", withTastyInspectorOptions),
133132
).checkRuns()
134133
}
135134

library/src/scala/tasty/Reflection.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1703,7 +1703,7 @@ class Reflection(private[scala] val internal: CompilerInterface) { self =>
17031703
def qualifier(given ctx: Context): TypeOrBounds /* Type | NoPrefix */ = internal.TypeRef_qualifier(self)
17041704
def name(given ctx: Context): String = internal.TypeRef_name(self)
17051705
def isOpaqueAlias(given ctx: Context): Boolean = internal.TypeRef_isOpaqueAlias(self)
1706-
def opaqueAliasWrappedType(given ctx: Context): Type = internal.TypeRef_opaqueAliasWrappedType(self)
1706+
def translucentSuperType(given ctx: Context): Type = internal.TypeRef_translucentSuperType(self)
17071707
}
17081708

17091709
given (given Context): IsInstanceOf[SuperType] = internal.isInstanceOfSuperType

library/src/scala/tasty/reflect/CompilerInterface.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -916,7 +916,7 @@ trait CompilerInterface {
916916
def TypeRef_qualifier(self: TypeRef)(given ctx: Context): TypeOrBounds
917917
def TypeRef_name(self: TypeRef)(given Context): String
918918
def TypeRef_isOpaqueAlias(self: TypeRef)(given Context): Boolean
919-
def TypeRef_opaqueAliasWrappedType(self: TypeRef)(given Context): Type
919+
def TypeRef_translucentSuperType(self: TypeRef)(given Context): Type
920920

921921
/** Type of a `super` reference */
922922
type SuperType <: Type

tests/run-custom-args/i8163.scala renamed to tests/run-custom-args/tasty-inspector/i8163.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ class TestInspector() extends TastyInspector
3535
case _ => throw new Exception("unexpected")
3636
}
3737
assert(shouldBePhoneType.isOpaqueAlias)
38-
assert(shouldBePhoneType.opaqueAliasWrappedType.show == "scala.Predef.String")
38+
assert(shouldBePhoneType.translucentSuperType.show == "scala.Predef.String")
3939

4040
val shouldNotBePhone = interestingVals.find(_.name == "other").get
4141
val shouldNotBePhoneType = shouldNotBePhone.tpt.tpe match {

0 commit comments

Comments
 (0)