You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(transformer_plugins): add changed field to ReplaceGlobalDefinesReturn
Add a `changed: bool` field to `ReplaceGlobalDefinesReturn` to track whether the AST was modified during transformation. This allows callers to determine if replacements were made without comparing the AST before and after.
Changes:
- Add `changed: bool` field to `ReplaceGlobalDefinesReturn` struct
- Add change tracking field to `ReplaceGlobalDefines` struct
- Create `mark_as_changed()` helper method to consolidate tracking
- Update traversal methods to call `mark_as_changed()` when replacements occur
- Add test assertion to verify `changed` field reflects actual modifications
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
0 commit comments