forked from NomicFoundation/slang
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Output bindings and graph snapshots on versions with changes
- Loading branch information
Showing
17 changed files
with
688 additions
and
167 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
37 changes: 37 additions & 0 deletions
37
crates/solidity/outputs/cargo/tests/src/bindings_output/generated/mod.rs
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
148 changes: 148 additions & 0 deletions
148
...es/solidity/testing/snapshots/bindings_output/lexical/generated/local_vars.sol-0.4.11.mmd
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,148 @@ | ||
graph TD | ||
N0["`**0** @(1, 1) | ||
ROOT_NODE | ||
#null`"] | ||
N1["`**1** @(1, 1) | ||
@source_unit.lexical_scope | ||
line 20 column 21`"] | ||
N1 --> N4 | ||
N2["`**2** @(1, 1) | ||
@source_unit.defs | ||
line 23 column 21`"] | ||
N2 --> N4 | ||
N3["`**3** @(1, 1) | ||
@definition.lexical_scope | ||
line 39 column 20`"] | ||
N3 --> N1 | ||
N3 --> N6 | ||
N3 --> N8 | ||
N4["`**4** @(1, 1) | ||
@definition.defs | ||
line 40 column 20`"] | ||
N4 --> N9 | ||
N5["`**5** @(2, 1) | ||
@definition.lexical_scope | ||
line 39 column 20`"] | ||
N5 --> N3 | ||
N5 --> N13 | ||
N6["`**6** @(2, 1) | ||
@definition.defs | ||
line 40 column 20`"] | ||
N6 --> N10 | ||
N7["`**7** @(6, 1) | ||
@definition.lexical_scope | ||
line 39 column 20`"] | ||
N7 --> N3 | ||
N7 --> N15 | ||
N8["`**8** @(6, 1) | ||
@definition.defs | ||
line 40 column 20`"] | ||
N8 --> N11 | ||
N9[\"`**Foo** @(1, 1) | ||
def | ||
line 75 column 8`"/] | ||
N10[\"`**bar** @(2, 1) | ||
def | ||
line 96 column 8`"/] | ||
N11[\"`**baz** @(6, 1) | ||
def | ||
line 96 column 8`"/] | ||
N12["`**12** @(2, 29) | ||
@param.lexical_scope | ||
line 108 column 15`"] | ||
N12 --> N5 | ||
N13["`**13** @(2, 29) | ||
@param.defs | ||
line 109 column 15`"] | ||
N14["`**14** @(7, 29) | ||
@param.lexical_scope | ||
line 108 column 15`"] | ||
N14 --> N7 | ||
N15["`**15** @(7, 29) | ||
@param.defs | ||
line 109 column 15`"] | ||
N16["`**16** @(2, 34) | ||
@block.lexical_scope | ||
line 183 column 15`"] | ||
N16 --> N5 | ||
N16 --> N21 | ||
N16 --> N23 | ||
N17["`**17** @(2, 34) | ||
@block.defs | ||
line 184 column 15`"] | ||
N17 --> N21 | ||
N17 --> N23 | ||
N18["`**18** @(7, 33) | ||
@block.lexical_scope | ||
line 183 column 15`"] | ||
N18 --> N7 | ||
N18 --> N25 | ||
N19["`**19** @(7, 33) | ||
@block.defs | ||
line 184 column 15`"] | ||
N19 --> N25 | ||
N20["`**20** @(3, 1) | ||
@stmt.lexical_scope | ||
line 188 column 14`"] | ||
N20 --> N16 | ||
N21["`**21** @(3, 1) | ||
@stmt.defs | ||
line 189 column 14`"] | ||
N21 --> N26 | ||
N22["`**22** @(4, 1) | ||
@stmt.lexical_scope | ||
line 188 column 14`"] | ||
N22 --> N16 | ||
N23["`**23** @(4, 1) | ||
@stmt.defs | ||
line 189 column 14`"] | ||
N24["`**24** @(8, 1) | ||
@stmt.lexical_scope | ||
line 188 column 14`"] | ||
N24 --> N18 | ||
N25["`**25** @(8, 1) | ||
@stmt.defs | ||
line 189 column 14`"] | ||
N26[\"`**x** @(3, 1) | ||
def | ||
line 250 column 8`"/] | ||
N27["`**27** @(3, 17) | ||
@expr.lexical_scope | ||
line 338 column 14`"] | ||
N27 --> N20 | ||
N28["`**28** @(4, 15) | ||
@expr.lexical_scope | ||
line 338 column 14`"] | ||
N28 --> N22 | ||
N29["`**29** @(4, 15) | ||
@expr.lexical_scope | ||
line 338 column 14`"] | ||
N29 --> N28 | ||
N30["`**30** @(4, 19) | ||
@expr.lexical_scope | ||
line 338 column 14`"] | ||
N30 --> N28 | ||
N31["`**31** @(8, 15) | ||
@expr.lexical_scope | ||
line 338 column 14`"] | ||
N31 --> N24 | ||
N32["`**32** @(8, 15) | ||
@expr.lexical_scope | ||
line 338 column 14`"] | ||
N32 --> N31 | ||
N33["`**33** @(8, 19) | ||
@expr.lexical_scope | ||
line 338 column 14`"] | ||
N33 --> N31 | ||
N34[/"`**x** @(4, 15) | ||
ref | ||
line 342 column 8`"\] | ||
N34 --> N29 | ||
N35[/"`**w** @(8, 15) | ||
ref | ||
line 342 column 8`"\] | ||
N35 --> N32 | ||
N36[/"`**x** @(8, 19) | ||
ref | ||
line 342 column 8`"\] | ||
N36 --> N33 |
25 changes: 25 additions & 0 deletions
25
...es/solidity/testing/snapshots/bindings_output/lexical/generated/local_vars.sol-0.4.11.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
References and definitions: | ||
╭─[local_vars.sol:1:1] | ||
│ | ||
1 │ contract Foo { | ||
│ ─┬─ | ||
│ ╰─── def: 1 | ||
2 │ function bar() returns (uint) { | ||
│ ─┬─ | ||
│ ╰─── def: 2 | ||
3 │ uint x = 10; | ||
│ ┬ | ||
│ ╰── def: 3 | ||
4 │ return x + 2; | ||
│ ┬ | ||
│ ╰── ref: 3 | ||
│ | ||
7 │ function baz() returns (int) { | ||
│ ─┬─ | ||
│ ╰─── def: 4 | ||
8 │ return w + x; | ||
│ ┬ ┬ | ||
│ ╰────── unresolved | ||
│ │ | ||
│ ╰── unresolved | ||
───╯ |
Oops, something went wrong.