Selecting a set of candidate code expressions from a section of program code for copying
Abstract
To facilitate code building, a user can identify an expression to be copied at a position in a source section of program code. Occurrences of the user-selected expression form a set of candidate code expressions. The user-selected expression may include some or all occurrences of a variable within an enclosing scope in the source section, program statements, etc. The formed set of candidate code expressions is presented to the user for user selection of one or more of the expression occurrences within the set. The set occurrences selected by the user are pasted to one or more target locations.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 20 · Forward citations: 20.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A method for selecting a set of candidate code expressions from a section of program code, comprising: receiving a user selection of an expression at a position in the section of program code, said user selection identifies an expression to be copied; identifying, using a processor, a set of candidate code expressions for copying, said set comprising one or more further occurrences of said user-selected expression in an enclosing scope at said position in said section of program code; copying said set of candidate code expressions; presenting said copied set of candidate code expressions to th
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (15 of 20 total)
References Cited — Backward Prior Art (20)
Non-Patent Literature (5)
- Author Unknown, Pattern by Example,Delta Software Technology GmbH, 2003. Available from http://www.delta-software-technology.com.
- Author: Miryung Kim, Vibha Sazawal, and David Notkin, "Supporting Uses of Editing Process Patterns", IUI Workshop, 2004 Available from http://www.research.ibm.com/iui-workshop/.
- Glen Wallace et al, "Smarter cut-and-paste for programming text editors", ACM International Conference Proceeding Series, vol. 14, Proceedings of the 2nd Australasian conference on User Interface, Queensland, Australia, 2001, pp. 56-63.
- NetBeans Copy Class Refactoring Module Tutorial (http://platform.netbeans.org/tutorials/nbm-refactoring.html)f, Dated: Oct. 28, 2005.
- Title: CP-Miner: finding copy-paste and related bugs in large-scale software code, author: Li et al, dated: Marc 2006, source: IEEE.