We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
For any given symbol usage, we want to be able to jump to the point in our code where the symbol was defined.
textDocument/definition
there is also potential overlap with the textDocument/declaration method to be explored as part of the implementation of this feature.
textDocument/declaration
x: uint256 @external def foo() -> uint256: return self.x
Running Go To Definition on the usage of self.x within foo() should jump the cursor to the first line, where x is declared/defined.
Go To Definition
self.x
foo()
x
x: uint256 @external def foo() -> uint256: return self.bar() @internal def bar() -> uint256: return self.x
Running Go To Definition on the usage of self.bar() within foo() should jump the cursor to the line where the function bar() is declared
self.bar()
bar()
The text was updated successfully, but these errors were encountered:
No branches or pull requests
For any given symbol usage, we want to be able to jump to the point in our code where the symbol was defined.
LSP API Methods
textDocument/definition
there is also potential overlap with the
textDocument/declaration
method to be explored as part of the implementation of this feature.Variations of Definition Lookups
Variables
Running
Go To Definition
on the usage ofself.x
withinfoo()
should jump the cursor to the first line, wherex
is declared/defined.Functions
Running
Go To Definition
on the usage ofself.bar()
withinfoo()
should jump the cursor to the line where the functionbar()
is declaredThe text was updated successfully, but these errors were encountered: