Skip to content

Commit 8b2706f

Browse files
committed
Move SyntaxHighlight into scala.quoted.reflect.printers
1 parent 2956e33 commit 8b2706f

File tree

8 files changed

+7
-10
lines changed

8 files changed

+7
-10
lines changed

compiler/src/dotty/tools/dotc/quoted/QuoteContextImpl.scala

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@ import dotty.tools.dotc.quoted.QuoteUtils._
1414
import dotty.tools.dotc.core.Decorators._
1515

1616
import scala.quoted.QuoteContext
17-
import scala.quoted.show.SyntaxHighlight
18-
import scala.quoted.reflect.printers.{ExtractorsPrinter, SourceCodePrinter}
17+
import scala.quoted.reflect.printers.{ExtractorsPrinter, SourceCodePrinter, SyntaxHighlight}
1918

2019
import scala.internal.quoted.PickledQuote
2120
import scala.tasty.reflect._

library/src-bootstrapped/scala/quoted/Expr.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package scala.quoted
22

3-
import scala.quoted.show.SyntaxHighlight
3+
import scala.quoted.reflect.printers.SyntaxHighlight
44
import scala.internal.tasty.CompilerInterface.quoteContextWithCompilerInterface
55

66
/** Quoted expression of type `T` */

library/src-bootstrapped/scala/quoted/QuoteContext.scala

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
package scala.quoted
22

3-
import scala.quoted.show.SyntaxHighlight
4-
53
/** Quotation context provided by a macro expansion or in the scope of `scala.quoted.run`.
64
* Used to perform all operations on quoted `Expr` or `Type`.
75
*

library/src-bootstrapped/scala/quoted/Type.scala

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

33
import scala.annotation.compileTimeOnly
4-
import scala.quoted.show.SyntaxHighlight
4+
import scala.quoted.reflect.printers.SyntaxHighlight
55

66
/** Quoted type (or kind) `T` */
77
abstract class Type[T <: AnyKind] private[scala] {

library/src/scala/quoted/reflect/printers/SourceCodePrinter.scala

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ package scala.quoted
22
package reflect.printers
33

44
import scala.annotation.switch
5-
import scala.quoted.show.SyntaxHighlight
65

76
/** Printer for fully elaborated representation of the source code */
87
class SourceCodePrinter(syntaxHighlight: SyntaxHighlight) extends Printer {

library/src/scala/quoted/show/SyntaxHighlight.scala renamed to library/src/scala/quoted/reflect/printers/SyntaxHighlight.scala

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
package scala.quoted.show
1+
package scala.quoted
2+
package reflect.printers
23

34
trait SyntaxHighlight {
45
def highlightKeyword(str: String): String

library/src/scala/tasty/Reflection.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package scala.tasty
33
import scala.internal.tasty.CompilerInterface
44

55
import scala.quoted.QuoteContext
6-
import scala.quoted.show.SyntaxHighlight
6+
import scala.quoted.reflect.printers.SyntaxHighlight
77
import scala.tasty.reflect._
88

99
/** TASTy Reflect Interface.

tests/run-macros/i6270/Macro_1.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import scala.quoted._
2-
import scala.quoted.show.SyntaxHighlight.ANSI
2+
import scala.quoted.reflect.printers.SyntaxHighlight.ANSI
33

44
object api {
55
extension (inline x: String) inline def reflect : String =

0 commit comments

Comments
 (0)