Skip to content

Commit ae2de7f

Browse files
committed
Align quote and TASTy show method names
1 parent 3408f4e commit ae2de7f

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ abstract class Expr[+T] private[scala] {
1010
this.unseal.showWith(SyntaxHighlight.plain)
1111

1212
/** Show a source code like representation of this expression */
13-
def show(syntaxHighlight: SyntaxHighlight)(using qctx: QuoteContext): String =
13+
def showWith(syntaxHighlight: SyntaxHighlight)(using qctx: QuoteContext): String =
1414
this.unseal.showWith(syntaxHighlight)
1515

1616
/** Return the unlifted value of this expression.

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ abstract class Type[X <: AnyKind] private[scala] {
1212
this.unseal.showWith(SyntaxHighlight.plain)
1313

1414
/** Show a source code like representation of this type */
15-
def show(syntaxHighlight: SyntaxHighlight)(using qctx: QuoteContext): String =
15+
def showWith(syntaxHighlight: SyntaxHighlight)(using qctx: QuoteContext): String =
1616
this.unseal.showWith(syntaxHighlight)
1717

1818
/** View this expression `quoted.Type[T]` as a `TypeTree` */

tests/run-macros/i6270/Macro_1.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,6 @@ object api {
1515

1616
private def reflImplColor(x: Expr[String])(using qctx: QuoteContext) : Expr[String] = {
1717
import qctx.tasty._
18-
Expr(x.show(ANSI))
18+
Expr(x.showWith(ANSI))
1919
}
2020
}

0 commit comments

Comments
 (0)