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 snapshots in addition to graph outputs
- Loading branch information
Showing
9 changed files
with
199 additions
and
11 deletions.
There are no files selected for viewing
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
8 changes: 8 additions & 0 deletions
8
crates/solidity/outputs/cargo/slang_solidity/src/generated/bindings/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
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
26 changes: 26 additions & 0 deletions
26
crates/solidity/testing/snapshots/bindings_output/lexical/generated/local_vars.sol.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,26 @@ | ||
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 | ||
│ | ||
6 │ return x + 2; | ||
│ ┬ | ||
│ ╰── ref: 3 | ||
│ | ||
10 │ function baz() returns (int) { | ||
│ ─┬─ | ||
│ ╰─── def: 4 | ||
11 │ return w + x; | ||
│ ┬ ┬ | ||
│ ╰────── unresolved | ||
│ │ | ||
│ ╰── unresolved | ||
────╯ |
23 changes: 23 additions & 0 deletions
23
crates/solidity/testing/snapshots/bindings_output/lexical/generated/params.sol.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,23 @@ | ||
References and definitions: | ||
╭─[params.sol:1:1] | ||
│ | ||
1 │ contract Foo { | ||
│ ─┬─ | ||
│ ╰─── def: 1 | ||
2 │ function bar(uint z) returns (uint) { | ||
│ ─┬─ ┬ | ||
│ ╰────────── def: 2 | ||
│ │ | ||
│ ╰── def: 3 | ||
│ | ||
5 │ return z + 1; | ||
│ ┬ | ||
│ ╰── ref: 3 | ||
│ | ||
9 │ function baz() returns (int) { | ||
│ ─┬─ | ||
│ ╰─── def: 4 | ||
10 │ return z + 2; | ||
│ ┬ | ||
│ ╰── unresolved | ||
────╯ |
34 changes: 34 additions & 0 deletions
34
crates/solidity/testing/snapshots/bindings_output/lexical/generated/state_vars.sol.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,34 @@ | ||
References and definitions: | ||
╭─[state_vars.sol:1:1] | ||
│ | ||
1 │ contract Foo { | ||
│ ─┬─ | ||
│ ╰─── def: 1 | ||
2 │ uint x; | ||
│ ┬ | ||
│ ╰── def: 2 | ||
│ | ||
5 │ function bar() returns (uint) { | ||
│ ─┬─ | ||
│ ╰─── def: 3 | ||
6 │ return x; | ||
│ ┬ | ||
│ ╰── ref: 2 | ||
│ | ||
10 │ function baz() returns (int) { | ||
│ ─┬─ | ||
│ ╰─── def: 4 | ||
11 │ return y; | ||
│ ┬ | ||
│ ╰── unresolved | ||
│ | ||
16 │ contract Bar { | ||
│ ─┬─ | ||
│ ╰─── def: 5 | ||
17 │ function quux() returns (uint) { | ||
│ ──┬─ | ||
│ ╰─── def: 6 | ||
18 │ return x; | ||
│ ┬ | ||
│ ╰── unresolved | ||
────╯ |
8 changes: 8 additions & 0 deletions
8
crates/testlang/outputs/cargo/slang_testlang/src/generated/bindings/mod.rs
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.