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.
Support function modifier inheritance and overriding
- Loading branch information
Showing
11 changed files
with
309 additions
and
58 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
64 changes: 35 additions & 29 deletions
64
...s/solidity/outputs/cargo/slang_solidity/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.
15 changes: 15 additions & 0 deletions
15
crates/solidity/outputs/cargo/tests/src/bindings_output/generated/modifiers.rs
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
56 changes: 56 additions & 0 deletions
56
...solidity/testing/snapshots/bindings_output/modifiers/diamond/generated/0.4.11-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,56 @@ | ||
# This file is generated automatically by infrastructure scripts. Please don't edit by hand. | ||
|
||
Parse errors: | ||
Error: Expected OpenBrace or Semicolon. | ||
╭─[input.sol:2:18] | ||
│ | ||
2 │ modifier foo virtual { _; } | ||
│ ───────┬─────── | ||
│ ╰───────── Error occurred here. | ||
───╯ | ||
Error: Expected OpenBrace or Semicolon. | ||
╭─[input.sol:6:18] | ||
│ | ||
6 │ modifier foo virtual override { _; } | ||
│ ────────────┬─────────── | ||
│ ╰───────────── Error occurred here. | ||
───╯ | ||
Error: Expected OpenBrace or Semicolon. | ||
╭─[input.sol:10:18] | ||
│ | ||
10 │ modifier foo virtual override { _; } | ||
│ ────────────┬─────────── | ||
│ ╰───────────── Error occurred here. | ||
────╯ | ||
References and definitions: | ||
╭─[input.sol:1:1] | ||
│ | ||
1 │ contract Base { | ||
│ ──┬─ | ||
│ ╰─── def: 1 | ||
│ | ||
5 │ contract A is Base { | ||
│ ┬ ──┬─ | ||
│ ╰────────── def: 2 | ||
│ │ | ||
│ ╰─── ref: 1 | ||
│ | ||
9 │ contract B is Base { | ||
│ ┬ ──┬─ | ||
│ ╰────────── def: 3 | ||
│ │ | ||
│ ╰─── ref: 1 | ||
│ | ||
13 │ contract Test is B, A { | ||
│ ──┬─ ┬ ┬ | ||
│ ╰─────────── def: 4 | ||
│ │ │ | ||
│ ╰───── ref: 3 | ||
│ │ | ||
│ ╰── ref: 2 | ||
14 │ function test() public foo {} | ||
│ ──┬─ ─┬─ | ||
│ ╰──────────────── def: 5 | ||
│ │ | ||
│ ╰─── unresolved | ||
────╯ |
Oops, something went wrong.