Eclipse Refactoring [message #644556] |
Mon, 13 December 2010 09:35 |
Dharam Messages: 18 Registered: December 2010 |
Junior Member |
|
|
Hello All!
1. Eclipse uses AST based concept for Refactoring. Refactoring is a "Complete Operation",
- Preceded by set of Preconditions
- Transformation
- Follwed by set of PostConditions
Example:
After applying "Rename Variable" refactoring, Eclipse immediately makes impact analysis & changes the source code
Queries:
Does it also change AST?
If Yes, then it must unparse AST & perform re-analysis to collect results based on new change,
But I am wondering how eclipse does it too fast. For millions of lines of code, static analyis takes lots of time.
Analysis means:
Variable Use
Variable Def
Aliasing Info
Call Graph
gen kill
reaching & liveness
etc...
[Updated on: Mon, 13 December 2010 12:23] Report message to a moderator
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.09002 seconds