This repository was archived by the owner on Apr 6, 2021. It is now read-only.
Commit 5644eb4
committed
implement naive recursive @apply
Currently what it will do is re-run the apply code. If it turns out that
there are @apply rules left, then it will re-apply those. If there are
no @apply rules left, this means that we are "done".
One big downside is that we are (at the time of this commit) running the
apply code for the test at least 4 times. The good part is that we are
doing it on the exact same tree so we don't need to re-parse it.
This is the first implementation which can be improved!1 parent 66c47d3 commit 5644eb4
1 file changed
+14
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
13 | 16 | | |
14 | 17 | | |
15 | 18 | | |
| |||
38 | 41 | | |
39 | 42 | | |
40 | 43 | | |
41 | | - | |
| 44 | + | |
42 | 45 | | |
43 | 46 | | |
44 | 47 | | |
| |||
79 | 82 | | |
80 | 83 | | |
81 | 84 | | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
82 | 88 | | |
83 | 89 | | |
84 | 90 | | |
85 | 91 | | |
86 | | - | |
87 | | - | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
88 | 95 | | |
89 | 96 | | |
90 | 97 | | |
| |||
136 | 143 | | |
137 | 144 | | |
138 | 145 | | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
139 | 149 | | |
140 | 150 | | |
141 | 151 | | |
| |||
0 commit comments