Commit 7e17118
authored
Remove parser modes (#8610)
* Refactor constructor arity in parsetree
Signed-off-by: Christoph Knittel <ck@cca.io>
* Remove obsolete parser printer flag
Signed-off-by: Christoph Knittel <ck@cca.io>
* Share constructor pattern argument parsing
Signed-off-by: Christoph Knittel <ck@cca.io>
* Share constructor argument printing
Signed-off-by: Christoph Knittel <ck@cca.io>
* Centralize AST0 constructor argument bridging
Signed-off-by: Christoph Knittel <ck@cca.io>
* Localize legacy explicit arity handling
Signed-off-by: Christoph Knittel <ck@cca.io>
* Use plural names for constructor source arguments
Signed-off-by: Christoph Knittel <ck@cca.io>
* Add constructor arity changelog entry
Signed-off-by: Christoph Knittel <ck@cca.io>
* Preserve fresh AST0 constructor arity
Signed-off-by: Christoph Knittel <ck@cca.io>
* Partition polymorphic variant argument comments
Signed-off-by: Christoph Knittel <ck@cca.io>
* Fix AST0 constructor payload locations and printing
Signed-off-by: Christoph Knittel <ck@cca.io>
* Bump compiled artifact versions for constructor AST changes
Signed-off-by: Christoph Knittel <ck@cca.io>
* Deduplicate AST0 bridge marker removal
Signed-off-by: Christoph Knittel <ck@cca.io>
* Preserve polymorphic variant payload spans across AST0
Signed-off-by: Christoph Knittel <ck@cca.io>
* Retain constructor signature help between arguments
Signed-off-by: Christoph Knittel <ck@cca.io>
* Preserve constructor compatibility without parser modes
Apply the normalization approach proposed by @cristianoc in PR #8610. Keep source argument lists for printing and resolve semantic grouping after constructor disambiguation, without legacy PPX marker handling in the type checker or printer.
Signed-off-by: Christoph Knittel <ck@cca.io>
* Remove redundant single-tuple AST0 bridge marker
Signed-off-by: Christoph Knittel <ck@cca.io>
* Revert unnecessary constructor syntax migrations
Signed-off-by: Christoph Knittel <ck@cca.io>
* Simplify constructor bridge metadata handling and assertions
Signed-off-by: Christoph Knittel <ck@cca.io>
* Clarify constructor argument naming and simplify traversal
Signed-off-by: Christoph Knittel <ck@cca.io>
* Rename constructor argument compatibility fixture
Signed-off-by: Christoph Knittel <ck@cca.io>
* Preserve constructor argument-list locations explicitly
Signed-off-by: Christoph Knittel <ck@cca.io>
* Reuse argument-list locations in parsing and type checking
Signed-off-by: Christoph Knittel <ck@cca.io>
* Use argument-list boundaries for constructor signature help
Signed-off-by: Christoph Knittel <ck@cca.io>
* Accept located constructor arguments in AST helpers
Signed-off-by: Christoph Knittel <ck@cca.io>
* Separate constructor argument tests from AST0 bridge coverage
Signed-off-by: Christoph Knittel <ck@cca.io>
* Document the constructor argument AST0 bridge contract
Signed-off-by: Christoph Knittel <ck@cca.io>
* Use explicit locations at constructor helper call sites
Signed-off-by: Christoph Knittel <ck@cca.io>
* Normalize constructor tuple paths in completion
Signed-off-by: Christoph Knittel <ck@cca.io>
* Select constructor tuple parameters in signature help
Signed-off-by: Christoph Knittel <ck@cca.io>
* Preserve constructor source arity in completion paths
Signed-off-by: Christoph Knittel <ck@cca.io>
* Use shared argument traversal for constructor completion gaps
Signed-off-by: Christoph Knittel <ck@cca.io>
* Reuse resolved inline-record constructor fields in completion
Signed-off-by: Christoph Knittel <ck@cca.io>
* Preserve list constructor attributes on the AST0 wire
Signed-off-by: Christoph Knittel <ck@cca.io>
* Simplify AST0 argument tuple callbacks
Signed-off-by: Christoph Knittel <ck@cca.io>
* Preserve attributed list payload tuples across AST0 conversions
Signed-off-by: Christoph Knittel <ck@cca.io>
* Adapt constructor tag helper to argument lists
Signed-off-by: Christoph Knittel <ck@cca.io>
* Normalize constructor payload grouping in completion paths
Signed-off-by: Christoph Knittel <ck@cca.io>
* Keep unary tuple signature help on its only parameter
Signed-off-by: Christoph Knittel <ck@cca.io>
* Preserve attributes on marked polymorphic variant type tuples
Signed-off-by: Christoph Knittel <ck@cca.io>
* Preserve attributed payloads in shared constructor decoding
Signed-off-by: Christoph Knittel <ck@cca.io>
* Complete between existing constructor arguments
Signed-off-by: Christoph Knittel <ck@cca.io>
* Fix payload completion for qualified constructor patterns
Signed-off-by: Christoph Knittel <ck@cca.io>
* Preserve nested constructor payload completion
Signed-off-by: Christoph Knittel <ck@cca.io>
---------
Signed-off-by: Christoph Knittel <ck@cca.io>1 parent 5357fe4 commit 7e17118
102 files changed
Lines changed: 4525 additions & 1226 deletions
File tree
- analysis
- reanalyze/src
- src
- compiler
- bsc
- common
- ext
- frontend
- jsoo
- ml
- syntax
- cli
- src
- tests
- analysis_tests/tests/src
- expected
- build_tests/super_errors
- expected
- fixtures
- ounit_tests
- syntax_tests
- data
- ast-mapping
- expected
- printer/comments
- expected
- tests/src
- tools/src
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| 42 | + | |
| 43 | + | |
42 | 44 | | |
43 | 45 | | |
44 | 46 | | |
| |||
82 | 84 | | |
83 | 85 | | |
84 | 86 | | |
| 87 | + | |
85 | 88 | | |
86 | 89 | | |
87 | 90 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
| 33 | + | |
| 34 | + | |
34 | 35 | | |
35 | | - | |
36 | | - | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
37 | 41 | | |
38 | 42 | | |
39 | 43 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
17 | | - | |
| 16 | + | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
304 | 304 | | |
305 | 305 | | |
306 | 306 | | |
307 | | - | |
308 | | - | |
| 307 | + | |
309 | 308 | | |
310 | 309 | | |
311 | 310 | | |
| |||
314 | 313 | | |
315 | 314 | | |
316 | 315 | | |
317 | | - | |
318 | | - | |
| 316 | + | |
319 | 317 | | |
320 | 318 | | |
321 | 319 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | 8 | | |
14 | 9 | | |
15 | 10 | | |
| |||
24 | 19 | | |
25 | 20 | | |
26 | 21 | | |
27 | | - | |
| 22 | + | |
28 | 23 | | |
29 | | - | |
| 24 | + | |
| 25 | + | |
30 | 26 | | |
31 | 27 | | |
32 | 28 | | |
| |||
122 | 118 | | |
123 | 119 | | |
124 | 120 | | |
125 | | - | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
126 | 124 | | |
127 | 125 | | |
128 | 126 | | |
129 | 127 | | |
130 | 128 | | |
131 | 129 | | |
132 | | - | |
133 | | - | |
134 | | - | |
135 | | - | |
136 | | - | |
137 | | - | |
138 | | - | |
139 | | - | |
140 | | - | |
141 | | - | |
142 | | - | |
143 | | - | |
144 | | - | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
145 | 135 | | |
146 | 136 | | |
147 | | - | |
148 | | - | |
149 | | - | |
| 137 | + | |
| 138 | + | |
150 | 139 | | |
151 | 140 | | |
152 | 141 | | |
153 | 142 | | |
154 | | - | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
155 | 148 | | |
156 | 149 | | |
157 | 150 | | |
158 | 151 | | |
159 | 152 | | |
160 | 153 | | |
161 | | - | |
| 154 | + | |
162 | 155 | | |
| 156 | + | |
163 | 157 | | |
164 | 158 | | |
165 | 159 | | |
166 | | - | |
167 | | - | |
168 | | - | |
169 | | - | |
170 | | - | |
171 | | - | |
172 | | - | |
173 | | - | |
174 | | - | |
175 | | - | |
176 | | - | |
177 | | - | |
178 | 160 | | |
179 | | - | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
180 | 165 | | |
181 | 166 | | |
182 | 167 | | |
183 | 168 | | |
184 | | - | |
185 | | - | |
186 | | - | |
187 | | - | |
188 | | - | |
189 | | - | |
190 | | - | |
191 | | - | |
192 | | - | |
193 | | - | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
194 | 173 | | |
195 | | - | |
196 | | - | |
197 | | - | |
| 174 | + | |
| 175 | + | |
198 | 176 | | |
199 | 177 | | |
200 | | - | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
201 | 186 | | |
202 | 187 | | |
203 | 188 | | |
204 | 189 | | |
205 | | - | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
206 | 195 | | |
207 | 196 | | |
208 | | - | |
209 | | - | |
210 | | - | |
211 | | - | |
212 | | - | |
213 | | - | |
214 | | - | |
215 | | - | |
216 | | - | |
217 | 197 | | |
218 | 198 | | |
219 | 199 | | |
| |||
288 | 268 | | |
289 | 269 | | |
290 | 270 | | |
291 | | - | |
292 | | - | |
293 | | - | |
294 | | - | |
295 | | - | |
296 | | - | |
297 | | - | |
298 | | - | |
299 | | - | |
300 | | - | |
301 | | - | |
302 | | - | |
303 | | - | |
304 | | - | |
305 | | - | |
306 | | - | |
307 | | - | |
308 | | - | |
309 | | - | |
310 | | - | |
311 | | - | |
312 | | - | |
| 271 | + | |
313 | 272 | | |
314 | 273 | | |
315 | 274 | | |
| |||
0 commit comments