Skip to content
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

Replace internal types with bundled globals file #326

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

apottere
Copy link
Contributor

@apottere apottere commented Aug 31, 2022

This change replaces the types inlined in SolInternalTypeFactory with a bundled .sol file that is loaded through the PSI system. This allows references to globals to have a destination, essentially providing docs in-process.

Example:

Jumping to keccak256 in this file...
image

Displays the following file
image

In addition, syntax highlighting now uses the properties from the global scope in order to highlight globals, meaning they no longer need to be hard-coded in the annotator.

I've added all of the globals from the solidity docs that I could find, including the array and address scopes. This seems to work pretty well so far, but more extensive testing is probably still needed.

TODO

  • Fix tests

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant