Skip to content

Commit 7c231cc

Browse files
committed
Rename Internal to CompilerInterface
1 parent ecc632b commit 7c231cc

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ import scala.quoted.show.SyntaxHighlight
99
object ReflectionImpl {
1010

1111
def apply(rootContext: Contexts.Context): scala.tasty.Reflection =
12-
new scala.tasty.Reflection(new ReflectionInternal(rootContext))
12+
new scala.tasty.Reflection(new ReflectionCompilerInterface(rootContext))
1313

1414
def showTree(tree: tpd.Tree)(implicit ctx: Contexts.Context): String = {
15-
val refl = new scala.tasty.Reflection(new ReflectionInternal(MacroExpansion.context(tree)))
15+
val refl = new scala.tasty.Reflection(new ReflectionCompilerInterface(MacroExpansion.context(tree)))
1616
val reflCtx = ctx.asInstanceOf[refl.Context]
1717
val reflTree = tree.asInstanceOf[refl.Tree]
1818
val syntaxHighlight =

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ import dotty.tools.dotc.parsing.Parsers.Parser
1616
import dotty.tools.dotc.typer.Implicits.{AmbiguousImplicits, DivergingImplicit, NoMatchingImplicits, SearchFailure, SearchFailureType}
1717
import dotty.tools.dotc.util.{SourceFile, SourcePosition, Spans}
1818

19-
import scala.tasty.reflect.Internal
19+
import scala.tasty.reflect.CompilerInterface
2020

21-
class ReflectionInternal(val rootContext: core.Contexts.Context) extends Internal {
21+
class ReflectionCompilerInterface(val rootContext: core.Contexts.Context) extends CompilerInterface {
2222
import tpd._
2323

2424
private implicit def ctx: core.Contexts.Context = rootContext

library/src/scala/tasty/Reflection.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ package scala.tasty
22

33
import scala.tasty.reflect._
44

5-
class Reflection(private[scala] val internal: Internal)
5+
class Reflection(private[scala] val internal: CompilerInterface)
66
extends Core
77
with ConstantOps
88
with ContextOps

library/src/scala/tasty/reflect/Core.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ package scala.tasty.reflect
120120
*/
121121
trait Core {
122122

123-
private[scala] val internal: Internal
123+
private[scala] val internal: CompilerInterface
124124

125125
/** Compilation context */
126126
type Context = internal.Context

library/src/scala/tasty/reflect/Internal.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ import scala.quoted.QuoteContext
119119
*
120120
* ```
121121
*/
122-
trait Internal {
122+
trait CompilerInterface {
123123

124124
/** Context of the macro expansion */
125125
def rootContext: Context

0 commit comments

Comments
 (0)