跳到主要导航 跳到搜索 跳到主要内容

Lexical similarity between argument and parameter names: An empirical study

  • Guangjie Li
  • , Hui Liu*
  • , Qiurong Liu
  • , Yuting Wu
  • *此作品的通讯作者
  • Beijing Institute of Technology
  • Beijing University of Technology
  • Qinghai University

科研成果: 期刊稿件文章同行评审

摘要

Identifiers chosen by programmers convey rich semantic information that could be exploited to enhance program analysis for various software engineering tasks, e.g., anomaly detection, argument recommendation, and code completion. However, such information has not yet been fully exploited, and little is known about its properties. In this paper, we carry out an empirical study to investigate the lexical similarity between the actual argument and the formal parameter names in method invocations. By analyzing actual arguments and formal parameters from 127 Java applications and 30 open-source C applications, we observe a number of interesting and valuable findings concerning the distribution of similarity, reasons for dissimilarity, and so on. Such findings have been exploited to facilitate argument-related software engineering tasks, i.e., anomaly detection and code completion.

源语言英语
文章编号8488350
页(从-至)58461-58481
页数21
期刊IEEE Access
6
DOI
出版状态已出版 - 2018

指纹

探究 'Lexical similarity between argument and parameter names: An empirical study' 的科研主题。它们共同构成独一无二的指纹。

引用此