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
Looking up references of Foo should bring up the line where we log Foo.
Looking up references of Bar should bring up both the line where we declare the return type of baz() to be Bar, as well as the line where we create a new instance of Bar to be returned
The text was updated successfully, but these errors were encountered:
For any given symbol definition/declaration, we want to be able to find all references to this symbol in the project.
With Vyper's (current) lack of modules, this is simplified given that we only have to search the current file being edited.
LSP API Methods
textDocument/references
Variations of Reference Lookups
Variable Names
Looking up references of
x
should give us a list of every usage ofself.x
in the contract.Constants and immutables will be referenced without the
self
prefix.User-Defined "Types"
"Types" isn't quite the right word, but is useful here to cover both
struct
andevent
declarations.Looking up references of
Foo
should bring up the line where we log Foo.Looking up references of
Bar
should bring up both the line where we declare the return type ofbaz()
to beBar
, as well as the line where we create a new instance ofBar
to be returnedThe text was updated successfully, but these errors were encountered: