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

feature: add methods Refactoring#copyType and Refactoring#copyMethod #1884

Merged
merged 1 commit into from
Feb 27, 2018

Conversation

monperrus
Copy link
Collaborator

plus changeMethodName as useful bonus, see testCopyMethod

Advanced cloning usages requires more than only copying all metamodel fields. For instance, it also requires to update references and to set a parent (for future resolving with getDeclaration).

This is what is done here.

@monperrus monperrus force-pushed the refactor-clone-relative-4 branch from 29e95aa to 2428627 Compare February 25, 2018 21:21
@spoon-bot
Copy link
Collaborator

API changes: 2 (Detected by Revapi)

Old API: fr.inria.gforge.spoon:spoon-core:jar:6.2.0-20180225.081141-110 / New API: fr.inria.gforge.spoon:spoon-core:jar:6.2.0-SNAPSHOT

Method was added to an interface.
Old none
New method CtMethod#copyMethod()
Breaking binary: non_breaking
Method was added to an interface.
Old none
New method CtType#copyType()
Breaking binary: non_breaking

@pvojtechovsky pvojtechovsky merged commit bd1168a into INRIA:master Feb 27, 2018
@pvojtechovsky
Copy link
Collaborator

Thank you Martin!

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.

3 participants