You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For a given interface, we want to be able to jump to the implementation of required functions.
Because this works at the function level and not at the interface level, this will not be supported for imported interfaces, but only for interfaces declared within the contract being worked on.
LSP API Methods
textDocument/implementation
Example
Functions
owner: addressinterfaceOwnable:
# get address of ownerdefowner() ->address: viewimplements: Ownable@view@externaldefowner() ->address:
returnself.owner
Running go to implementation with the cursor on the owner line within the Ownable interface should jump the cursor to the implementation of owner() at the end of the contract.
Public Variables
owner: public(address)
interfaceOwnable:
# get address of ownerdefowner() ->address: viewimplements: Ownable
In this case, there is no explicit owner() function. Instead, a public variable is declared, which automatically creates this function. In this case, the cursor should jump to where the public variable is declared at the top of the contract.
The text was updated successfully, but these errors were encountered:
For a given interface, we want to be able to jump to the implementation of required functions.
Because this works at the function level and not at the interface level, this will not be supported for imported interfaces, but only for interfaces declared within the contract being worked on.
LSP API Methods
textDocument/implementation
Example
Functions
Running
go to implementation
with the cursor on theowner
line within theOwnable
interface should jump the cursor to the implementation ofowner()
at the end of the contract.Public Variables
In this case, there is no explicit
owner()
function. Instead, a public variable is declared, which automatically creates this function. In this case, the cursor should jump to where the public variable is declared at the top of the contract.The text was updated successfully, but these errors were encountered: