-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The previous implementation would traverse the tokens in the file each time it would analyze a `sig` until it found the corresponding method definition. This would take additional time the further we got into a file, as we would have to re-traverse all tokens so far. This new implementation simply looks for the next node after the `sig`, confirms it is the method definition, and calculates offsets for the lines in between.
- Loading branch information
1 parent
fd1e1e0
commit 4f74f27
Showing
3 changed files
with
50 additions
and
25 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