System and methodology providing automated selection adjustment for refactoring
AssigneeBorland Software Corporation
InventorChristian K. Kemper
Life of this patent
Estimating the term…
Abstract
A system providing methods for adjusting a user's selection of source code of a program to correspond with a parsed version of the program is described. The method commences with user input of a selection of source code of a program for performing an operation such as a refactoring. The user's selection is compared with a parsed version of the program. If the user's selection does not correspond with the parsed version of the program, the user's selection is adjusted to achieve correspondence with the parsed version of the program.
Claims46
A method for adjusting a user's selection of source code of a program to align the selection with a parsed version of the program, the method comprising:
- receiving user input comprising selection of source code of a program for performing an operation;
- comparing the user's selection with a parsed version of the program;
- and
- if the user's selection does not correspond with the parsed version of the program, adjusting the user's selection to achieve correspondence with the parsed version of the program.
A method for assisting a user in proper selection of program code to be affected by a refactoring, the method comprising:
- receiving user input comprising selection of program code for performing a refactoring;
- generating a parse tree representation of the program;
- determining correspondence between portions of the parse tree representation and the code selected by the user;
- and
- adjusting the code selected by the user to correspond to the parse tree representation of the program.
A method for modifying a user's selection of a portion of a program to generate a syntactically correct expression, the method comprising:
- receiving user input comprising selection of a portion of a program for performing a given operation;
- using a compiler to generate a representation of the program;
- determining syntactically correct expressions in the compiler generated representation;
- and
- modifying the user's selection so that it comprises a syntactically correct expression.
Dependencies are inferred from the claim text.