-
Couldn't load subscription status.
- Fork 22
[Enhancement] Add global assignments after imports #677
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Signed-off-by: ali <[email protected]>
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
Signed-off-by: ali <[email protected]>
Signed-off-by: ali <[email protected]>
PR Type
Enhancement, Tests
Description
Insert global assignments immediately after imports
Add
_find_insertion_indexhelper in code_extractorUpdate leave_Module to splice assignments via
chainRevise tests to expect assignments after imports
Diagram Walkthrough
File Walkthrough
code_extractor.py
Insertion of assignments after importscodeflash/code_utils/code_extractor.py
chainfromitertools_find_insertion_indexmethodleave_Moduleto insert assignments after importstest_code_replacement.py
Adjust expected assignment placementtests/test_code_replacement.py
test_multi_file_code_replacement.py
Update multi-file test assignment placementtests/test_multi_file_code_replacement.py
_TOKEN_SPLIT_REassignment after imports_translate_table