-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replacing per-member path with enum's value ref typenode
- Loading branch information
1 parent
1b73b89
commit 0f17d5a
Showing
5 changed files
with
110 additions
and
68 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
62 changes: 29 additions & 33 deletions
62
crates/solidity/outputs/cargo/crate/src/generated/bindings/generated/binding_rules.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
50 changes: 50 additions & 0 deletions
50
...y/testing/snapshots/bindings_output/using/binding_enum_member/generated/0.6.0-failure.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,50 @@ | ||
# This file is generated automatically by infrastructure scripts. Please don't edit by hand. | ||
|
||
References and definitions: | ||
╭─[input.sol:1:1] | ||
│ | ||
1 │ enum Answer { | ||
│ ───┬── | ||
│ ╰──── def: 1 | ||
2 │ Yes | ||
│ ─┬─ | ||
│ ╰─── def: 2 | ||
│ | ||
5 │ library Id { | ||
│ ─┬ | ||
│ ╰── def: 3 | ||
6 │ function id(Answer ans) returns (Answer) { | ||
│ ─┬ ───┬── ─┬─ ───┬── | ||
│ ╰────────────────────────────── def: 4 | ||
│ │ │ │ | ||
│ ╰───────────────────────── ref: 1 | ||
│ │ │ | ||
│ ╰──────────────────── def: 5 | ||
│ │ | ||
│ ╰──── ref: 1 | ||
7 │ return ans; | ||
│ ─┬─ | ||
│ ╰─── ref: 5 | ||
│ | ||
11 │ contract Test { | ||
│ ──┬─ | ||
│ ╰─── def: 6 | ||
12 │ using Id for Answer; | ||
│ ─┬ ───┬── | ||
│ ╰───────────── ref: 3 | ||
│ │ | ||
│ ╰──── ref: 1 | ||
│ | ||
14 │ function testFunc() returns (Answer) { | ||
│ ────┬─── ───┬── | ||
│ ╰─────────────────────── def: 7 | ||
│ │ | ||
│ ╰──── ref: 1 | ||
15 │ Answer.Yes.id(); | ||
│ ───┬── ─┬─ ─┬ | ||
│ ╰─────────── ref: 1 | ||
│ │ │ | ||
│ ╰────── ref: 2 | ||
│ │ | ||
│ ╰── unresolved | ||
────╯ |
File renamed without changes.