Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-dev] Two Phase Refactoring

I somehow dont understand this at all. i have been suggested many times but somehow cant get access to the transformed AST. 
 
Can u give me a pseudocode on how i can perform one set of refactoring on an ast and then apply another refactoring on the transformed ast . the full one. not just the part that was rewritten. basically anyway of saving the intermediate transformations would be helpful. 

On Dec 3, 2016 07:36, "Sergey Prigogin" <eclipse.sprigogin@xxxxxxxxx> wrote:
You can put as many layers of AST rewrites as you want by using ASTRewrite API.

-sergey  

On Fri, Dec 2, 2016 at 12:06 AM, Krishna Narasimhan <krishna.nm86@xxxxxxxxx> wrote:
Hi,
   Is it possible to write a two phase refactoring within the same refactoring option. 

Basically, I want the AST to be transformed once, and then apply one more fresh set of refactorings on the rewritten AST which will then be finalized back into the source.

I understand ASTRewrite just provides the rewrite object of a particular node that was rewritten.

Best
Krishna


_______________________________________________
cdt-dev mailing list
cdt-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/cdt-dev


_______________________________________________
cdt-dev mailing list
cdt-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/cdt-dev

Back to the top