Sciweavers

C3S2E
2008
ACM

Context-sensitive cut, copy, and paste

13 years 5 months ago
Context-sensitive cut, copy, and paste
Creating and editing source code are tedious and error-prone processes. One important source of errors in editing programs is the failure to correctly adapt a block of copied code to a new context. This occurs because several dependencies to the surrounding code usually need to be adapted for the new context and it is easy to forget one of them. Conversely, this also makes such errors hard to find. This paper presents a new method for identifying some common types of errors in cut, copy and paste operations. The method analyzes the context of the original block of code and tries to match it with the context in the new location. It utilizes a simple, pattern-based model of context, which we found to be well suited to the analysis of relocated blocks of text. Furthermore, we discuss the ability of our technique to detect semantic errors. While semantic errors are relatively difficult to recognize in a static document, our new technique can infer important information from the original c...
Reid Kerr, Wolfgang Stürzlinger
Added 12 Oct 2010
Updated 12 Oct 2010
Type Conference
Year 2008
Where C3S2E
Authors Reid Kerr, Wolfgang Stürzlinger
Comments (0)