Commit e68e1c6
committed
Merge #146: Add getters for Span and improve error handling
f00714d added getters for span in parse and ast structs (Volodymyr Herashchenko)
23e637c added getter for span in parse.rs and ast.rs (Volodymyr Herashchenko)
b2ab9f4 added getters to span and error in RichError (Volodymyr Herashchenko)
Pull request description:
## Description
This pull request introduces getter methods for Span in Parse and AST nodes, and adds getters for RichError fields. These changes make span and error information more accessible, simplifying the development of tools for SimplicityHL.
## Impact
- Supports easier integration with developer tooling (e.g., LSP, analyzers).
- No breaking changes introduced.
ACKs for top commit:
apoelstra:
ACK f00714d; successfully ran local tests
Tree-SHA512: 25e66a907858973241544a897273f3242fc234f4ce8057b5db65d952738eec113dcbfdcdebcb3a825a3fd603cc47ef93577f5a4f6de5fa8064df4dfb469292543 files changed
Lines changed: 88 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
126 | 126 | | |
127 | 127 | | |
128 | 128 | | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
129 | 134 | | |
130 | 135 | | |
131 | 136 | | |
| |||
150 | 155 | | |
151 | 156 | | |
152 | 157 | | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
153 | 163 | | |
154 | 164 | | |
155 | 165 | | |
| |||
193 | 203 | | |
194 | 204 | | |
195 | 205 | | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
196 | 211 | | |
197 | 212 | | |
198 | 213 | | |
| |||
244 | 259 | | |
245 | 260 | | |
246 | 261 | | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
247 | 267 | | |
248 | 268 | | |
249 | 269 | | |
| |||
355 | 375 | | |
356 | 376 | | |
357 | 377 | | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
358 | 383 | | |
359 | 384 | | |
360 | 385 | | |
| |||
397 | 422 | | |
398 | 423 | | |
399 | 424 | | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
400 | 430 | | |
401 | 431 | | |
402 | 432 | | |
| |||
416 | 446 | | |
417 | 447 | | |
418 | 448 | | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
419 | 454 | | |
420 | 455 | | |
421 | 456 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
221 | 221 | | |
222 | 222 | | |
223 | 223 | | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
224 | 232 | | |
225 | 233 | | |
226 | 234 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
89 | 94 | | |
90 | 95 | | |
91 | 96 | | |
| |||
143 | 148 | | |
144 | 149 | | |
145 | 150 | | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
146 | 156 | | |
147 | 157 | | |
148 | 158 | | |
| |||
165 | 175 | | |
166 | 176 | | |
167 | 177 | | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
168 | 183 | | |
169 | 184 | | |
170 | 185 | | |
| |||
223 | 238 | | |
224 | 239 | | |
225 | 240 | | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
226 | 246 | | |
227 | 247 | | |
228 | 248 | | |
| |||
240 | 260 | | |
241 | 261 | | |
242 | 262 | | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
243 | 268 | | |
244 | 269 | | |
245 | 270 | | |
| |||
278 | 303 | | |
279 | 304 | | |
280 | 305 | | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
281 | 311 | | |
282 | 312 | | |
283 | 313 | | |
| |||
344 | 374 | | |
345 | 375 | | |
346 | 376 | | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
347 | 382 | | |
348 | 383 | | |
349 | 384 | | |
| |||
430 | 465 | | |
431 | 466 | | |
432 | 467 | | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
433 | 473 | | |
434 | 474 | | |
435 | 475 | | |
| |||
458 | 498 | | |
459 | 499 | | |
460 | 500 | | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
461 | 506 | | |
462 | 507 | | |
463 | 508 | | |
| |||
0 commit comments