File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
compiler/src/dotty/tools/dotc/quoted Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -10,15 +10,15 @@ import scala.runtime.quoted.Unpickler._
10
10
11
11
class QuoteContext private (val tasty : scala.tasty.Reflection ) extends scala.quoted.QuoteContext {
12
12
13
- def unpickleExpr [T ](pickledExpr : PickledExpr , args : PickledExprArgs ): given scala .quoted. QuoteContext => Expr [T ] = given qctx => {
13
+ def unpickleExpr [T ](pickledExpr : PickledExpr , args : PickledExprArgs ): Expr [T ] = {
14
14
new scala.internal.quoted.TastyTreeExpr (
15
- PickledQuotes .unpickleExpr(pickledExpr, args) given qctx .tasty.rootContext.asInstanceOf [Context ]
15
+ PickledQuotes .unpickleExpr(pickledExpr, args) given this .tasty.rootContext.asInstanceOf [Context ]
16
16
).asInstanceOf [Expr [T ]]
17
17
}
18
18
19
- def unpickleType [T ](pickledType : PickledType , args : PickledTypeArgs ): given scala .quoted. QuoteContext => Type [T ] = given qctx => {
19
+ def unpickleType [T ](pickledType : PickledType , args : PickledTypeArgs ): Type [T ] = {
20
20
new scala.internal.quoted.TreeType (
21
- PickledQuotes .unpickleType(pickledType, args) given qctx .tasty.rootContext.asInstanceOf [Context ]
21
+ PickledQuotes .unpickleType(pickledType, args) given this .tasty.rootContext.asInstanceOf [Context ]
22
22
).asInstanceOf [Type [T ]]
23
23
}
24
24
Original file line number Diff line number Diff line change @@ -53,11 +53,11 @@ trait QuoteContext {
53
53
54
54
/** Unpickle `pickledExpr` which represents a pickled `Expr` tree
55
55
*/
56
- private [scala] def unpickleExpr [T ](pickledExpr : PickledExpr , args : PickledExprArgs ): given QuoteContext => Expr [T ]
56
+ private [scala] def unpickleExpr [T ](pickledExpr : PickledExpr , args : PickledExprArgs ): Expr [T ]
57
57
58
58
/** Unpickle `pickledType` which represents a pickled `Type` tree
59
59
*/
60
- private [scala] def unpickleType [T ](pickledType : PickledType , args : PickledTypeArgs ): given QuoteContext => Type [T ]
60
+ private [scala] def unpickleType [T ](pickledType : PickledType , args : PickledTypeArgs ): Type [T ]
61
61
62
62
}
63
63
You can’t perform that action at this time.
0 commit comments