Refactor _ast module for clarity#7031
Conversation
|
Caution Review failedThe pull request is closed. 📝 WalkthroughWalkthroughThis PR adds a helper Changes
Estimated code review effort🎯 4 (Complex) | ⏱️ ~45 minutes Possibly related PRs
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 1 | ❌ 2❌ Failed checks (1 warning, 1 inconclusive)
✅ Passed checks (1 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
- Extract singleton_node_to_object() helper for operator/context nodes - Rename PY_COMPILE_FLAG_AST_ONLY to PY_CF_ONLY_AST - Rename populate_match_args_and_attributes to populate_repr - Set _attributes in impl_base_node! no-args variant - Simplify ast_reduce with .is_some() instead of drop(value) - Remove _ prefix from used parameters across ast/ files - Fix slot_new comment to explain why slot_init is called
Summary by CodeRabbit
Performance Improvements
Refactor
Chores