ualberta-smr / RefactoringAwareMergingEvaluation

Refactoring-aware operation-based merging
GNU General Public License v3.0
2 stars 0 forks source link

Extract method from noncontiguous lines of code #17

Open max-ellis opened 3 years ago

max-ellis commented 3 years ago

Summary

When the extract method extracts code from multiple spots in the source method, the extract method is not replayed correctly because it includes all of the code between the spots.

FIx

I will fix this by keeping track of the lines of code in the original extracted method instead of just the starting and ending line.

max-ellis commented 3 years ago

This is a limitation with modern refactoring engines, they can extract a method from a contiguous block of code.