From 962838879a87dc3eb020a6e484926f235154aa78 Mon Sep 17 00:00:00 2001 From: Nicolas Stucki Date: Thu, 13 Aug 2020 09:58:34 +0200 Subject: [PATCH] Move tasty.CompilerInterface to scala.internal This class is not part of the user interface. --- .../dotc/tastyreflect/ReflectionCompilerInterface.scala | 2 +- .../reflect => internal/tasty}/CompilerInterface.scala | 6 +++--- library/src/scala/tasty/Reflection.scala | 2 ++ 3 files changed, 6 insertions(+), 4 deletions(-) rename library/src/scala/{tasty/reflect => internal/tasty}/CompilerInterface.scala (99%) diff --git a/compiler/src/dotty/tools/dotc/tastyreflect/ReflectionCompilerInterface.scala b/compiler/src/dotty/tools/dotc/tastyreflect/ReflectionCompilerInterface.scala index 30bf679c2f04..3cb25a84c1a5 100644 --- a/compiler/src/dotty/tools/dotc/tastyreflect/ReflectionCompilerInterface.scala +++ b/compiler/src/dotty/tools/dotc/tastyreflect/ReflectionCompilerInterface.scala @@ -17,7 +17,7 @@ import dotty.tools.dotc.typer.Implicits.{AmbiguousImplicits, DivergingImplicit, import dotty.tools.dotc.util.{SourceFile, SourcePosition, Spans} import scala.internal.quoted.Unpickler -import scala.tasty.reflect.CompilerInterface +import scala.internal.tasty.CompilerInterface import scala.tasty.reflect.TypeTest diff --git a/library/src/scala/tasty/reflect/CompilerInterface.scala b/library/src/scala/internal/tasty/CompilerInterface.scala similarity index 99% rename from library/src/scala/tasty/reflect/CompilerInterface.scala rename to library/src/scala/internal/tasty/CompilerInterface.scala index 92c30187c60c..60f4ffb233b1 100644 --- a/library/src/scala/tasty/reflect/CompilerInterface.scala +++ b/library/src/scala/internal/tasty/CompilerInterface.scala @@ -1,7 +1,7 @@ -package scala.tasty.reflect // TODO move to scala.internal.tasty.reflect +package scala.internal.tasty import scala.quoted.QuoteContext -import scala.tasty.Reflection +import scala.tasty.reflect._ import scala.internal.quoted.Unpickler /** Tasty reflect abstract types @@ -57,7 +57,7 @@ import scala.internal.quoted.Unpickler * | * +- TypeBoundsTree * +- WildcardTypeTree -* | + * | * +- CaseDef * +- TypeCaseDef * | diff --git a/library/src/scala/tasty/Reflection.scala b/library/src/scala/tasty/Reflection.scala index beb9d152596e..442f83a3901e 100644 --- a/library/src/scala/tasty/Reflection.scala +++ b/library/src/scala/tasty/Reflection.scala @@ -1,5 +1,7 @@ package scala.tasty +import scala.internal.tasty.CompilerInterface + import scala.quoted.QuoteContext import scala.quoted.show.SyntaxHighlight import scala.tasty.reflect._