Skip to content

Commit 097aa5c

Browse files
committed
Use given instead of implicit arguments
1 parent b9ddebd commit 097aa5c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

library/src/scala/quoted/Expr.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ package quoted {
6060
* Given list of statements `s1 :: s2 :: ... :: Nil` and an expression `e` the resulting expression
6161
* will be equivalent to `'{ $s1; $s2; ...; $e }`.
6262
*/
63-
def block[T](statements: List[Expr[_]], expr: Expr[T])(implicit qctx: QuoteContext): Expr[T] = {
63+
def block[T](statements: List[Expr[_]], expr: Expr[T]) given (qctx: QuoteContext): Expr[T] = {
6464
import qctx.tasty._
6565
Block(statements.map(_.unseal), expr.unseal).seal.asInstanceOf[Expr[T]]
6666
}

library/src/scala/quoted/Type.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ package quoted {
77
type `$splice` = T
88

99
/** Show a source code like representation of this type without syntax highlight */
10-
def show(implicit qctx: QuoteContext): String = qctx.show(this, SyntaxHighlight.plain)
10+
def show given (qctx: QuoteContext): String = qctx.show(this, SyntaxHighlight.plain)
1111

1212
/** Show a source code like representation of this type */
13-
def show(syntaxHighlight: SyntaxHighlight)(implicit qctx: QuoteContext): String = qctx.show(this, syntaxHighlight)
13+
def show(syntaxHighlight: SyntaxHighlight) given (qctx: QuoteContext): String = qctx.show(this, syntaxHighlight)
1414

1515
}
1616

0 commit comments

Comments
 (0)