-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
analyzer, server: partial symbol, import, and semantic analysis (#363)
This PR improves analysis efficiency by only analyzing the affected AST nodes through its line number. Import analysis is now executed if the affected node is an import statement and semantic analysis is executed if its otherwise. This will hopefully alleviate concerns surrounding #360. * analyzer: add option for tree cursor to select node based on starting line number * server: add last_modified_line * server: determine last first affected line for analysis * server: skip analyzing imports when affected node is an import decl * server: fix analyze_file on did_open * analyzer/semantic_analyzer, server: add support for partial analysis * analyzer: add position heuristic in register_symbol * analyzer: fix failing tests
- Loading branch information
Showing
6 changed files
with
70 additions
and
34 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
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