-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Basic go-to-definition inside functions (#63)
When processing the index list, the language server will now go through function bodies to find fields This will only occur when the function's body is directly a DesugaredObject This doesn't support all cases. I will probably have to add more, I have already identified cases which are even more complex that do not work yet, but this is a good first step
- Loading branch information
1 parent
6c988f7
commit 49a3b9b
Showing
4 changed files
with
70 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
local myfunc(arg1, arg2) = { | ||
arg1: arg1, | ||
arg2: arg2, | ||
}; | ||
|
||
{ | ||
accessThroughFunc: myfunc('test', 'test').arg2, | ||
funcCreatedObj: myfunc('test', 'test'), | ||
accesThroughFuncCreatedObj: self.funcCreatedObj.arg2, | ||
} |