-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove all binding results ranking and use all found definitions instead #1195
Conversation
This results in some references being resolved to many ambiguous definitions, some of which we were able to resolve via ranking.
…assertions to snapshots
Most remaining assertion tests were redundant as there were already snapshots that cover those cases.
This also removes the ranking algorithm for resolution results, since it's no longer needed.
|
...s/solidity/testing/snapshots/bindings_output/built_ins/shadowing/generated/0.7.1-success.txt
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left a couple of questions.
This fixes some ambiguities especially with built-ins.
Rebasing #1198 on latest after #1195 was merged. --------- Co-authored-by: Gustavo Giráldez <[email protected]>
This PR removes
resolve_definition()
and consequently all the ranking machinery associated with it, including C3 linearisation and bindings context, which was used for virtual method lookups. Also deprecates binding assertions in favour of straight snapshots. This simplifies the binding resolution code quite a bit.