We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
privateTransform | oldClass newClass rbMethod originalProtocol | oldClass := self classModelOf: method methodClass. newClass := self classModelOf: class. rbMethod := model rbMethodClass for: newClass source: method sourceCode selector: method selector. originalProtocol := method protocolName. self generateChangesFor: (RBRemoveMethodTransformation selector: method selector from: oldClass). self generateChangesFor: (RBAddMethodTransformation model: self model sourceCode: rbMethod in: newClass withProtocol: originalProtocol)
the code passes a method instead of the source code
Clearly some tests are missing.
The solution should be something like:
privateTransform | oldClass newClass rbMethod originalProtocol | oldClass := self classModelOf: method methodClass. newClass := self classModelOf: class. self generateChangesFor: (RBRemoveMethodTransformation selector: method selector from: oldClass). self generateChangesFor: (RBAddMethodTransformation model: self model sourceCode: method sourceCode in: newClass withProtocol: method protocolName)
The text was updated successfully, but these errors were encountered:
Ducasse
No branches or pull requests
the code passes a method instead of the source code
Clearly some tests are missing.
The solution should be something like:
The text was updated successfully, but these errors were encountered: