Supporting selective undo for refactoring

Xiao Cheng, Yuting Chen, Zhenjiang Hu, Tao Zan, Mengyu Liu, Hao Zhong, Jianjun Zhao

研究成果: Chapter in Book/Report/Conference proceedingConference contribution

2 被引用数 (Scopus)

抄録

Due to various considerations, programmers often need to backtrack their code. Furthermore, as the most recent edit may not be the wrong edit, programmers sometimes have to backtrack their code for arbitrary edits, which is referred as a selective undo in this paper. To meet the needs, researchers have proposed various approaches to support selective undo. However, to the best of our knowledge, these approaches can support only simple edits, and cannot handle refactoring, although most code editors already provide various refactoring actions. Indeed, it is challenging to support selective undoes for refactoring, since multiple code elements and complicated actions can be involved. In this paper, we present a novel approach that leverages Bidirectional Transformation (BX) to support selective undoes for refactoring. We evaluate our approach on a recent refactoring tool that transfers enhanced for loops to lambda expressions. Our results show that our approach achieves success ratio of up to 89%.

本文言語英語
ホスト出版物のタイトル2016 IEEE 23rd International Conference on Software Analysis, Evolution, and Reengineering, SANER 2016
出版社Institute of Electrical and Electronics Engineers Inc.
ページ13-23
ページ数11
ISBN(電子版)9781509018550
DOI
出版ステータス出版済み - 5 20 2016
外部発表はい
イベント23rd IEEE International Conference on Software Analysis, Evolution, and Reengineering, SANER 2016 - Suita, Osaka, 日本
継続期間: 3 14 20163 18 2016

出版物シリーズ

名前2016 IEEE 23rd International Conference on Software Analysis, Evolution, and Reengineering, SANER 2016
1

会議

会議23rd IEEE International Conference on Software Analysis, Evolution, and Reengineering, SANER 2016
国/地域日本
CitySuita, Osaka
Period3/14/163/18/16

All Science Journal Classification (ASJC) codes

  • ソフトウェア

引用スタイル