Towards Generating Shorter Edit Scripts - An Extension of GumTree Based on Line Differences -

DOI

Bibliographic Information

Other Title
  • より短い編集スクリプトを目指して ― 行単位の差分情報に基づくGumTreeの拡張 ―

Abstract

On software development, developers often review source code. When developers review source code, developers have to understand the differences in two source code. Edit scripts represent actions which convert to edited source code from the original one. By understanding edit scripts, developers understand the differences between two versions of source code. One of the tools generating edit scripts is GumTree. GumTree takes two versions of source code as input and generates an edit script consisting of insert, delete, update and move nodes of abstract syntax tree (in short, AST). However, the accuracy of move and update actions generated by GumTree is insufficient, which makes edit scripts more difficult to understand. A reason why the accuracy is insufficient is that GumTree generates edit scripts from only information of AST. Thus, in this research, we propose to generate easier-to-understand edit scripts by using not only structures of AST but also information of line differences. To evaluate our methodology, we applied it to some open source software, and we confirmed that edit scripts generated by our methodology are more helpful to understand the differences of source code than GumTree.

Journal

Details 詳細情報について

Report a problem

Back to top