首页> 外文会议>IEEE/ACM International Conference on Automated Software Engineering >Generating simpler AST edit scripts by considering copy-and-paste
【24h】

Generating simpler AST edit scripts by considering copy-and-paste

机译:通过考虑复制和粘贴来生成更简单的AST编辑脚本

获取原文

摘要

In software development, there are many situations in which developers need to understand given source code changes in detail. Until now, a variety of techniques have been proposed to support understanding source code changes. Tree-based differencing techniques are expected to have better understandability than text-based ones, which are widely used nowadays (e.g., diff in Unix). In this paper, we propose to consider copy-and-paste as a kind of editing action forming tree-based edit script, which is an editing sequence that transforms a tree to another one. Software developers often perform copy- and-paste when they are writing source code. Introducing copy- and-paste action into edit script contributes to not only making simpler (more easily understandable) edit scripts but also making edit scripts closer to developers' actual editing sequences. We conducted experiments on an open dataset. As a result, we confirmed that our technique made edit scripts shorter for 18% of the code changes with a little more computational time. For the other 82% code changes, our technique generated the same edit scripts as an existing technique. We also confirmed that our technique provided more helpful visualizations.
机译:在软件开发中,在许多情况下,开发人员需要详细了解给定的源代码更改。到目前为止,已经提出了多种技术来支持对源代码更改的理解。与目前广泛使用的基于文本的区别技术(例如Unix中的diff)相比,基于树的区别技术有望具有更好的易懂性。在本文中,我们建议将复制和粘贴视为一种形成基于树的编辑脚本的编辑动作,该编辑脚本是将一棵树转换为另一棵树的编辑序列。软件开发人员在编写源代码时通常会执行复制和粘贴操作。在编辑脚本中引入复制和粘贴操作不仅有助于简化(更易于理解)编辑脚本,而且还使编辑脚本更接近于开发人员的实际编辑顺序。我们在一个开放的数据集上进行了实验。结果,我们证实了我们的技术使编辑脚本的代码更改量减少了18%,而计算时间却增加了一点。对于其他82%的代码更改,我们的技术生成的编辑脚本与现有技术相同。我们还确认,我们的技术提供了更有用的可视化效果。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号