ctf: fix struct member duplicating issue#408
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
📝 WalkthroughWalkthroughStructParser.parse now instantiates JsonStructureFieldMemberMetadataNode inline when iterating JSON memberClasses; the node's constructor attaches it to the parent, removing the prior local-child creation plus explicit addChild call. ChangesNode instantiation refactoring
Estimated code review effort🎯 2 (Simple) | ⏱️ ~5 minutes Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 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 |
Signed-off-by: Arnaud Fiorini <fiorini.arnaud@gmail.com>
What it does
Constructing the member field only as the constructor already adds the member to its parent. Previously the struct member was added twice causing an error. Fixes #375
How to test
Opening the trace that it provided in the issue.
Follow-ups
N/A
Review checklist
Summary by CodeRabbit