-
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.
Add binding rules for arrays, mappings and other types (#1082)
This PR adds binding rules to allow support name resolution of: - Top-level constants (contract/library/interface constants were already supported because they are parsed as state variables) - Mappings: both resolving key and value types as well as computing the result type of indexing - Arrays: same as above; missing support for array type members, which will be covered when we implement built-ins support - User defined value types; same as above to member functions - Function types; ditto
- Loading branch information
Showing
25 changed files
with
868 additions
and
8 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
148 changes: 145 additions & 3 deletions
148
...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_assertions/generated/arrays.rs
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.