Community
Participate
Working Groups
Build Identifier: M20100909-0800 The ASTRewrite class does not currently provide insertAfter functionality similar to JDT's getListRewrite().insertAfter(). This makes it awkward to insert statements after another statement. Reproducible: Always
Created attachment 185007 [details] Patch that adds an insertAfter method to the ASTRewrite class
Hi Fredrik, I haven't really looked at the patch (yet?) but in org.eclipse.cdt.core.parser.tests.rewrite.changegenerator.* I see tests for append, insertbefore, remove and replace. So this might need some tests too.
The patch doesn't apply to the latest code. Please update it.