Language server for the Yul language
GPL-3.0 License
This is an implementation of the Language Server Protocol for Yul programming language.
Developer hovers to the function name.
Then, developer clicks on the "Go to definition" shortcut that's configured in the editor.
Then the cursor points the the main function definition.
Screenshots:
case 0xa9059cbb "transfer(address,uint256)" {
transfer(decodeAsAddress(0), decodeAsUint(1))
returnTrue()
}
let contract_address := 0xe592427a0aece92de3edee1f18e0157c05861564 "SwapRouter"
cargo build
.env
file. DUNE_API_KEY=<INSERT_YOUR_KEY>
Edit
> Preferences
> Language Client
.Add
.Generic StdIO Language Server
option.Name
field with yul-lsp
.File pattern
field with *.yul
.Browse
and then choose the location of the yul-lsp
Executable.OK
.example/erc20.yul
).f2
or the short-cut key in your editor configs to go to the identifier definition.