Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename parameters in events #7215

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
Open

Rename parameters in events #7215

wants to merge 9 commits into from

Conversation

D8H
Copy link
Collaborator

@D8H D8H commented Dec 1, 2024

Changes

  • Add a refactor operation when a parameter is renamed
  • Fix unintended renaming of object where it's actually a variable with the same name
  • Refactor the "rename object" refactor operation to use ArbitraryEventsWorker

@D8H D8H requested a review from 4ian as a code owner December 1, 2024 14:52
Comment on lines +319 to +326
bool DoVisitInstruction(gd::Instruction &instruction,
bool isCondition) override {
if (&targetedObjectsContainer !=
GetProjectScopedContainers()
.GetObjectsContainersList()
.GetObjectsContainerFromObjectName(oldObjectName)) {
return false;
}
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This check is probably useless and asking the targetedObjectsContainer to callers complicate things. Maybe I shouldn't have added it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant