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
Add a `changed: bool` field to `InjectGlobalVariablesReturn` to track whether the AST was modified during transformation. This allows callers to determine if injections or replacements were made.
Changes:
- Add `changed: bool` field to `InjectGlobalVariablesReturn` struct
- Add change tracking field to `InjectGlobalVariables` struct
- Create `mark_as_changed()` helper method to consolidate tracking
- Update `replace_dot_defines` to call `mark_as_changed()` when replacements occur
- Update `inject_imports` to call `mark_as_changed()` when imports are injected
- Update `build` method to return `changed` field in all return paths
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
0 commit comments