intellij-solidity
intellij-solidity copied to clipboard
Replace internal types with bundled globals file
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...
Displays the following file
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