intellij-solidity icon indicating copy to clipboard operation
intellij-solidity copied to clipboard

Replace internal types with bundled globals file

Open apottere opened this issue 2 years ago • 0 comments

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

apottere avatar Aug 31 '22 03:08 apottere