@@ -8,24 +8,10 @@ abstract class Quoted
88
99object Quoted {
1010
11- /** A quote backed by a pickled TASTY tree */
12- trait TastyQuoted extends Quoted {
13- def tasty : Pickled
14- def args : Seq [Any ]
15- }
16-
17- /** Quoted for which its internal representation is its tree.
18- * - Used for trees that cannot be serialized, such as references to local symbols that will be spliced in.
19- * - Used for trees that do not need to be serialized to avoid the overhead of serialization/deserialization.
20- */
21- trait RawQuoted [Tree ] extends quoted.Quoted {
22- def tree : Tree
23- }
24-
2511 // Implementations of Expr[T]
2612
2713 /** An Expr backed by a pickled TASTY tree */
28- final class TastyExpr [T ](val tasty : Pickled , val args : Seq [Any ]) extends Expr [T ] with TastyQuoted {
14+ final class TastyExpr [T ](val tasty : Pickled , val args : Seq [Any ]) extends Expr [T ] {
2915 override def toString (): String = s " Expr(<pickled>) "
3016 }
3117
@@ -35,12 +21,14 @@ object Quoted {
3521 }
3622
3723 /** An Expr backed by a tree */
38- final class RawExpr [Tree ](val tree : Tree ) extends quoted.Expr [Any ] with RawQuoted [Tree ]
24+ final class RawExpr [Tree ](val tree : Tree ) extends quoted.Expr [Any ] {
25+ override def toString : String = s " Expr(<raw>) "
26+ }
3927
4028 // Implementations of Type[T]
4129
4230 /** A Type backed by a pickled TASTY tree */
43- final class TastyType [T ](val tasty : Pickled , val args : Seq [Any ]) extends Type [T ] with TastyQuoted {
31+ final class TastyType [T ](val tasty : Pickled , val args : Seq [Any ]) extends Type [T ] {
4432 override def toString (): String = s " Type(<pickled>) "
4533 }
4634
@@ -50,6 +38,8 @@ object Quoted {
5038 }
5139
5240 /** An Type backed by a tree */
53- final class RawType [Tree ](val tree : Tree ) extends quoted.Type [Any ] with RawQuoted [Tree ]
41+ final class RawType [Tree ](val tree : Tree ) extends quoted.Type [Any ] {
42+ override def toString : String = s " Type(<raw>) "
43+ }
5444
5545}
0 commit comments