-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix crash when analyzer encounters listcomp/genexprs
Internally, python creates a function for listcomps/genexprs so we treat it similarly. There's a new child scope and therefore a new symbol table we need to fetch. The only tricky part is that python names this function 'genexpr' and 'listcomp' even in the case of multiple genexprs and listcomps. We're not analyzing the `generators` attr of the nodes, but we will need to take that into account when we do. For now it doesn't matter.
- Loading branch information
Showing
3 changed files
with
78 additions
and
1 deletion.
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