-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create a
LocalScope
for CollectionComprehensions
and generate a `…
…Declaration` (#2019) * Create scope for collection comprehensions * generate local variables in python add declarations pass for comprehensions * Extend test to check fixes * Remove useless flag * Add test case * Adapt test * Test resolution of param * Reduce c&p code * add documentation * Move applyWithScope to Node * python style * more tests: binding * Enter scope only for python3 * numbers to text * Test for python2 behavior * Document test * Leave and re-enter scopes of comprehensions for assign expressions inside them using the := operator * Add test for nested comprehensions with := assignment * Higher code coverage in test * Test version info * Extract collection comprehension tests to own file * Rename * Document test * Document more asserts and rename wrong variable names * Document CollectionComprehensionPython3Test.testDictComprehensions * Document CollectionComprehensionPython3Test.testSetComprehensions * Document CollectionComprehensionPython3Test.testListComprehensions * Fix error in CollectionComprehensionPython3Test.testListComprehensions * Fix style of CollectionComprehensionPython2Test.testComprehensionExpressionTuple * Fix tests * Test improvements * Remove python2 test * Remove version-based logic which is no longer required * no more typos * object type to primitive type for consistency with other frontends and exceptions * versionInfo as extension variable * Revert changes to VersionInfo * Add test for write to list index * Add another test * Add another test: reversed order in tuple * fix documentation * Another test * Another test for more code coverage * Test applyWithScope without ctx * Fix test and typos * Another assertion * Add more strict assumptions again * Add another test for fields * Comment out failing asserts --------- Co-authored-by: Maximilian Kaul <[email protected]> Co-authored-by: Christian Banse <[email protected]>
- Loading branch information
1 parent
e18a82e
commit e53b568
Showing
10 changed files
with
2,081 additions
and
259 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
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.