"Refactoring is the process of changing a software system in such a way that it does not alter the external behavior of the code yet improves its internal structure. It is a disciplined way to clean up code that minimizes the chances of introducing bugs. In essence when you refactor you are improving the design of the code after it has been written." (Martin Fowler in Refactoring: Improving the Design of Existing Code, Addison-Wesley 2000)
Castalia's Refactoring
Castalia's refactoring tools help to automate this process. In some instances, this amounts to a little more than a search-and-replace feature that understands Delphi code (such as Rename Class). In other cases, the refactoring requires complex semantic and structural analysis that results in improved code structure (i.e. Extract Method).
Castalia offers automated tools for the following refactorings:
Rename Local Variable - Changes the name of a local variable and all references to that variable within the procedure or function
Rename Parameter - Changes the name of a parameter in both interface and implementation declarations, and all references to the parameter within the procedure or function.
Inline Temporary Variable - Removes a local variable from code and replaces all references to that variable within the procedure or function with the expression assigned to the variable