feat: introduce scope and data-flow analysis for python#190
Open
MashyBasker wants to merge 16 commits intoDeepSourceCorp:masterfrom
Open
feat: introduce scope and data-flow analysis for python#190MashyBasker wants to merge 16 commits intoDeepSourceCorp:masterfrom
MashyBasker wants to merge 16 commits intoDeepSourceCorp:masterfrom
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Skipped Deployment
|
4 tasks
This commit introduces scope analysis for Python language for better
data flow analysis.
Support for:
- variable declarations
- simple declarations
- tuple unpack, list unpack, pattern list
- import
- simple import
- import with alias
- import with `from`
Signed-off-by: Maharshi Basu <basumaharshi10@gmail.com>
Signed-off-by: Maharshi Basu <basumaharshi10@gmail.com>
b671e53 to
17c5f0a
Compare
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR introduces scope analysis for Python language for better data flow analysis.
Resolves #191
Support for(till now):
variable declarations
<name> = ...)(<name1>, <name2>) = (..., ...))[<name1>, <name2>] = [..., ...])<name1>, <name2> = ..., ...)import
import <name>)import <name> as <alias>)from <name> import <another_name>)functions
exception error variable in try/catch
withstatement'saspattern variableclass statements
walrus operator
comprehension patterns
lambda expression
forloops