File tree 2 files changed +3
-3
lines changed 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ package quoted {
60
60
* Given list of statements `s1 :: s2 :: ... :: Nil` and an expression `e` the resulting expression
61
61
* will be equivalent to `'{ $s1; $s2; ...; $e }`.
62
62
*/
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 ] = {
64
64
import qctx .tasty ._
65
65
Block (statements.map(_.unseal), expr.unseal).seal.asInstanceOf [Expr [T ]]
66
66
}
Original file line number Diff line number Diff line change @@ -7,10 +7,10 @@ package quoted {
7
7
type `$splice` = T
8
8
9
9
/** 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)
11
11
12
12
/** 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)
14
14
15
15
}
16
16
You can’t perform that action at this time.
0 commit comments