【24h】

Tool-supported Refactoring for JavaScript

机译:工具支持的JavaScript重构

获取原文
获取原文并翻译 | 示例

摘要

Refactoring is a popular technique for improving the structure of existing programs while maintaining their behavior. For statically typed programming languages such as Java, a wide variety of refactorings have been described, and tool support for performing refactorings and ensuring their correctness is widely available in modern IDEs. For the JavaScript programming language, however, existing refactoring tools are less mature and often unable to ensure that program behavior is preserved. Refactoring algorithms that have been developed for statically typed languages are not applicable to JavaScript because of its dynamic nature. We propose a framework for specifying and implementing JavaScript refactorings based on pointer analysis. We describe novel refactorings motivated by best practice recommendations for JavaScript programming, and demonstrate how they can be described concisely in terms of queries provided by our framework. Experiments performed with a prototype implementation on a suite of existing applications show that our approach is well-suited for developing practical refactoring tools for JavaScript.
机译:重构是一种流行的技术,用于在保持现有程序行为的同时改善其结构。对于诸如Java之类的静态类型编程语言,已描述了各种各样的重构,并且在现代IDE中广泛提供了用于执行重构并确保其正确性的工具支持。但是,对于JavaScript编程语言,现有的重构工具较不成熟,通常无法确保保留程序行为。针对静态类型语言开发的重构算法由于其动态特性而不适用于JavaScript。我们提出了一个用于基于指针分析来指定和实现JavaScript重构的框架。我们描述了基于JavaScript编程最佳实践建议的新颖重构,并演示了如何通过我们的框架提供的查询来简洁地描述它们。在一组现有应用程序上使用原型实现进行的实验表明,我们的方法非常适合开发JavaScript的实用重构工具。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号