Commit 20ad6ff
authored
[v2] Node Checker for the new (v2) AST (#1501)
Added a node checker for the new AST (#1493), it defines a trait to be
implemented over the new nodes.
An important note, I use V1 nodes rather than a cursor since it's easier
to track what I've seen and what I haven't seen. I found it difficult
with a cursor to keep track of the children of a given node that had
been processed already, and to traverse them in an arbitrary order.
Since this comparison mechanism is temporary I think this solution is
ok, but it does mean all the offset calculation is being done again.1 parent cbdcf27 commit 20ad6ff
File tree
7 files changed
+26619
-0
lines changed- crates/solidity-v2/outputs/cargo/parser
- src
- parser
- temp_cst_output
7 files changed
+26619
-0
lines changedSome generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
25 | 26 | | |
26 | 27 | | |
27 | 28 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
4 | 5 | | |
5 | 6 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
0 commit comments