@@ -28,43 +28,42 @@ import scala.annotation.constructorOnly
28
28
* Transforms top level quote
29
29
* ```
30
30
* '{ ...
31
- * @TypeSplice type X0 = {{ 0 | .. | contentsTpe0 | .. }}
32
- * @TypeSplice type X2 = {{ 1 | .. | contentsTpe1 | .. }}
31
+ * @TypeSplice type X0 = [[ [ `0`: ... | contentsTpe0 ]]]
32
+ * type X1
33
33
* val x1: U1 = ???
34
34
* val x2: U2 = ???
35
35
* ...
36
- * {{{ 3 | x1 | contents0 | T0 }}} // hole
36
+ * {{{ `2`(x1): T0 | contents0 }}} // Hole
37
37
* ...
38
- * {{{ 4 | x2 | contents1 | T1 }}} // hole
38
+ * {{{ `3`[X1](x2): T1 | contents1 }}} // Hole
39
39
* ...
40
- * {{{ 5 | x1, x2 | contents2 | T2 }}} // hole
40
+ * {{{ `4`( x1, x2): T2 | contents2 }}} // Hole
41
41
* ...
42
42
* }
43
43
* ```
44
44
* to
45
45
* ```
46
46
* unpickleExprV2(
47
- * pickled = [[ // PICKLED TASTY
48
- * @TypeSplice type X0 // with bounds that do not contain captured types
49
- * @TypeSplice type X1 // with bounds that do not contain captured types
47
+ * pickled = tasty""" // PICKLED TASTY
48
+ * @TypeSplice type X0 // with bounds that do not contain captured types
49
+ * type X1
50
50
* val x1 = ???
51
51
* val x2 = ???
52
52
* ...
53
- * {{{ 0 | x1 | | T0 }}} // hole
54
- * ...
55
- * {{{ 1 | x2 | | T1 }}} // hole
56
- * ...
57
- * {{{ 2 | x1, x2 | | T2 }}} // hole
53
+ * {{{ `0`(x1): T0 }}} // Hole
54
+ * ...
55
+ * {{{ `1`[X1](x2): T1 }}} // Hole
56
+ * ...
57
+ * {{{ `2`( x1, x2): T2 }}} // Hole
58
58
* ...
59
- * ]] ,
59
+ * """ ,
60
60
* typeHole = (idx: Int, args: List[Any]) => idx match {
61
61
* case 0 => contentsTpe0.apply(args(0).asInstanceOf[Type[?]]) // beta reduced
62
- * case 1 => contentsTpe1.apply(args(0).asInstanceOf[Type[?]]) // beta reduced
63
62
* },
64
63
* termHole = (idx: Int, args: List[Any], quotes: Quotes) => idx match {
65
- * case 3 => content0.apply(args(0).asInstanceOf[Expr[U1]]).apply(quotes) // beta reduced
66
- * case 4 => content1.apply(args(0).asInstanceOf[Expr[U2]]).apply(quotes) // beta reduced
67
- * case 5 => content2.apply(args(0).asInstanceOf[Expr[U1]], args(1).asInstanceOf[Expr[U2]]).apply(quotes) // beta reduced
64
+ * case 0 => content0.apply(args(0).asInstanceOf[Expr[U1]]).apply(quotes) // beta reduced
65
+ * case 1 => content1.apply(args(0).asInstanceOf[Expr[U2]]).apply(quotes) // beta reduced
66
+ * case 2 => content2.apply(args(0).asInstanceOf[Expr[U1]], args(1).asInstanceOf[Expr[U2]]).apply(quotes) // beta reduced
68
67
* },
69
68
* )
70
69
* ```
0 commit comments