-
Notifications
You must be signed in to change notification settings - Fork 52
Import Parsing #664
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
Import Parsing #664
Conversation
codegen-bot seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account. You have signed the CLA already but the status is still pending? Let us recheck it. |
Codecov ReportAll modified and coverable lines are covered by tests ✅ ✅ All tests successful. No failed tests found. Additional details and impacted files |
f4f801f
to
a767bc7
Compare
🎉 This PR is included in version 0.42.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
parses imports now during tree-sitter code_block parsing in
parser.py
Deals with top-level + dynamic imports
for typescript dynamic imports, it will search for imports by using a mixture of
get_all_descendants
andget_first_descendant
calls to search for the appropriate call_expression for importsis_wrapped_in functionality now works!
added parent_of_types, changed is_dynamic to now use the correct strategy instead of traversing up tree sitter nodes
CG-10504