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 InjectGlobalVariablesReturn (#14618)
## Summary
Add a `changed: bool` field to `InjectGlobalVariablesReturn` to track whether the AST was modified during the global variable injection transformation.
- Adds `changed` field to `InjectGlobalVariablesReturn` struct
- Tracks changes via consolidated `mark_as_changed()` helper method
- Updates `replace_dot_defines` when dot define replacements occur
- Updates `inject_imports` when import statements are injected
- Updates `build` method to return `changed` in all paths
This allows callers to efficiently determine if injections or replacements were made without needing to compare the AST before and after transformation.
## Test plan
- [x] All existing tests pass
- [x] No new tests needed - change tracking is straightforward
🤖 Generated with [Claude Code](https://claude.com/claude-code)
0 commit comments