@@ -24,70 +24,70 @@ object Liftable {
24
24
/** Default liftable for Boolean */
25
25
given BooleanLiftable [T <: Boolean ] as Liftable [T ] {
26
26
def toExpr (x : T ) =
27
- import qctx .reflect ._
27
+ import quotes .reflect ._
28
28
Literal (Constant .Boolean (x)).asExpr.asInstanceOf [Expr [T ]]
29
29
}
30
30
31
31
/** Default liftable for Byte */
32
32
given ByteLiftable [T <: Byte ] as Liftable [T ] {
33
33
def toExpr (x : T ) =
34
- import qctx .reflect ._
34
+ import quotes .reflect ._
35
35
Literal (Constant .Byte (x)).asExpr.asInstanceOf [Expr [T ]]
36
36
}
37
37
38
38
/** Default liftable for Short */
39
39
given ShortLiftable [T <: Short ] as Liftable [T ] {
40
40
def toExpr (x : T ) =
41
- import qctx .reflect ._
41
+ import quotes .reflect ._
42
42
Literal (Constant .Short (x)).asExpr.asInstanceOf [Expr [T ]]
43
43
}
44
44
45
45
/** Default liftable for Int */
46
46
given IntLiftable [T <: Int ] as Liftable [T ] {
47
47
def toExpr (x : T ) =
48
- import qctx .reflect ._
48
+ import quotes .reflect ._
49
49
Literal (Constant .Int (x)).asExpr.asInstanceOf [Expr [T ]]
50
50
}
51
51
52
52
/** Default liftable for Long */
53
53
given LongLiftable [T <: Long ] as Liftable [T ] {
54
54
def toExpr (x : T ) =
55
- import qctx .reflect ._
55
+ import quotes .reflect ._
56
56
Literal (Constant .Long (x)).asExpr.asInstanceOf [Expr [T ]]
57
57
}
58
58
59
59
/** Default liftable for Float */
60
60
given FloatLiftable [T <: Float ] as Liftable [T ] {
61
61
def toExpr (x : T ) =
62
- import qctx .reflect ._
62
+ import quotes .reflect ._
63
63
Literal (Constant .Float (x)).asExpr.asInstanceOf [Expr [T ]]
64
64
}
65
65
66
66
/** Default liftable for Double */
67
67
given DoubleLiftable [T <: Double ] as Liftable [T ] {
68
68
def toExpr (x : T ) =
69
- import qctx .reflect ._
69
+ import quotes .reflect ._
70
70
Literal (Constant .Double (x)).asExpr.asInstanceOf [Expr [T ]]
71
71
}
72
72
73
73
/** Default liftable for Char */
74
74
given CharLiftable [T <: Char ] as Liftable [T ] {
75
75
def toExpr (x : T ) =
76
- import qctx .reflect ._
76
+ import quotes .reflect ._
77
77
Literal (Constant .Char (x)).asExpr.asInstanceOf [Expr [T ]]
78
78
}
79
79
80
80
/** Default liftable for String */
81
81
given StringLiftable [T <: String ] as Liftable [T ] {
82
82
def toExpr (x : T ) =
83
- import qctx .reflect ._
83
+ import quotes .reflect ._
84
84
Literal (Constant .String (x)).asExpr.asInstanceOf [Expr [T ]]
85
85
}
86
86
87
87
/** Default liftable for Class[T] */
88
88
given ClassLiftable [T ] as Liftable [Class [T ]] = new Liftable [Class [T ]] {
89
89
def toExpr (x : Class [T ]) = {
90
- import qctx .reflect ._
90
+ import quotes .reflect ._
91
91
Ref (defn.Predef_classOf ).appliedToType(TypeRepr .typeConstructorOf(x)).asExpr.asInstanceOf [Expr [Class [T ]]]
92
92
}
93
93
}
0 commit comments