mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-23 22:52:11 +02:00
Fix for failing comment handling test (Windows only).
Change-Id: I2723d04a9de5088bcd7de6b05d833d0d5d059bf3
This commit is contained in:
parent
9f9ed938d2
commit
551f5eb2df
1 changed files with 4 additions and 7 deletions
|
@ -7,6 +7,7 @@
|
|||
*
|
||||
* Contributors:
|
||||
* Lukas Felber (IFS) - initial API and implementation
|
||||
* Thomas Corbat (IFS)
|
||||
*******************************************************************************/
|
||||
package org.eclipse.cdt.core.parser.tests.rewrite.comenthandler;
|
||||
|
||||
|
@ -14,7 +15,6 @@ import java.lang.reflect.Field;
|
|||
import java.util.List;
|
||||
|
||||
import org.eclipse.cdt.core.dom.ast.IASTNode;
|
||||
import org.eclipse.cdt.core.dom.ast.IASTNodeSelector;
|
||||
import org.eclipse.cdt.core.dom.ast.IASTTranslationUnit;
|
||||
import org.eclipse.cdt.core.dom.rewrite.ASTRewrite;
|
||||
import org.eclipse.cdt.core.parser.tests.rewrite.TestSourceFile;
|
||||
|
@ -33,12 +33,9 @@ public class CommentHandlingWithRewriteTest extends CommentHandlingTest {
|
|||
IASTTranslationUnit tu = getUnit("main.cpp");
|
||||
IASTTranslationUnit otherTu = getUnit("other.cpp");
|
||||
|
||||
IASTNodeSelector selector = tu.getNodeSelector(null);
|
||||
IASTNodeSelector otherSelector = otherTu.getNodeSelector(null);
|
||||
|
||||
IASTNode fooBody = selector.findNode(11, 27);
|
||||
IASTNode iNode = selector.findEnclosingNode(26, 10).getParent();
|
||||
IASTNode jNode = otherSelector.findNode(20, 10);
|
||||
IASTNode fooBody = tu.getDeclarations()[0].getChildren()[2];
|
||||
IASTNode iNode = fooBody.getChildren()[0];
|
||||
IASTNode jNode = otherTu.getDeclarations()[0];
|
||||
|
||||
ASTRewrite rewrite = ASTRewrite.create(tu);
|
||||
newRewrite = rewrite.insertBefore(fooBody, iNode, jNode, new TextEditGroup("test group"));
|
||||
|
|
Loading…
Add table
Reference in a new issue