Skip to content

Commit

Permalink
Support for bindings resolution of using ... for directives (#1103)
Browse files Browse the repository at this point in the history
Adds support to resolve identifiers used in the `using`...`for`
directives, as well as resolving to the attached functions for the types
extended by those directives.

Supported features:
- attaching functions to elementary types
- attaching functions to array types
- attaching functions to user defined types
- directives marked with `global` work
- both library and individual attachments are supported

Limitations/caveats:
- function types are supported but they are not discriminated by
parameters/return types (attached functions apply to all function types)
- operators for user-defined types are not yet implemented
- `using ... for *` is not yet supported
  • Loading branch information
ggiraldez authored Oct 2, 2024
1 parent 68746d7 commit 21e0082
Show file tree
Hide file tree
Showing 64 changed files with 2,337 additions and 368 deletions.
316 changes: 272 additions & 44 deletions crates/solidity/inputs/language/bindings/rules.msgb

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

277 changes: 0 additions & 277 deletions crates/solidity/outputs/cargo/tests/src/bindings_output/graph.rs

This file was deleted.

Loading

0 comments on commit 21e0082

Please sign in to comment.