This repository has been archived by the owner on Nov 23, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Closes #90 ### Summary of Changes This feature contains many additions to the collection of data when parsing python code (former scope detection). We now collect: the scope, the classes, the functions, all global variables, all value and target nodes, the parameters as well as all function calls when traversing the AST. During this traversal, we also determine the symbols for all name nodes. We distinguish between `GlobalVariables, LocalVariables, ClassVariables, InstanceVariables, Parameters` and `Builtins`. Furthermore, this feature resolves the references for all name nodes (target and value nodes). For each name node we determine its scope, as mentioned above, and a list of all referenced symbols and return a `ReferenceNode`. <!-- Please provide a summary of changes in this pull request, ensuring all changes are explained. --> --------- Co-authored-by: megalinter-bot <129584137+megalinter-bot@users.noreply.github.com>
- Loading branch information
1 parent
45b1329
commit bfcd292
Showing
17 changed files
with
4,761 additions
and
823 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
225 changes: 0 additions & 225 deletions
225
src/library_analyzer/processing/api/_resolve_references.py
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.