Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSergey Prigogin2011-12-14 03:48:19 -0500
committerSergey Prigogin2011-12-14 03:48:19 -0500
commit8b3ce7c39a92825b1e2ad89dd96f7f9ed41d5f23 (patch)
tree90b707241550b71c577745f2e0ffe09c5c3328b6 /core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/rewrite/astwriter
parentb8ac132da4c357d47db43dfa365f8a3cd2e1c945 (diff)
downloadorg.eclipse.cdt-8b3ce7c39a92825b1e2ad89dd96f7f9ed41d5f23.tar.gz
org.eclipse.cdt-8b3ce7c39a92825b1e2ad89dd96f7f9ed41d5f23.tar.xz
org.eclipse.cdt-8b3ce7c39a92825b1e2ad89dd96f7f9ed41d5f23.zip
Code cleanup.
Diffstat (limited to 'core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/rewrite/astwriter')
-rw-r--r--core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/rewrite/astwriter/StatementWriter.java9
1 files changed, 1 insertions, 8 deletions
diff --git a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/rewrite/astwriter/StatementWriter.java b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/rewrite/astwriter/StatementWriter.java
index fd0cf9a59a..5cf3422399 100644
--- a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/rewrite/astwriter/StatementWriter.java
+++ b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/rewrite/astwriter/StatementWriter.java
@@ -41,9 +41,6 @@ import org.eclipse.cdt.core.dom.ast.cpp.ICPPASTTryBlockStatement;
import org.eclipse.cdt.core.dom.ast.cpp.ICPPASTWhileStatement;
import org.eclipse.cdt.internal.core.dom.parser.IASTAmbiguousStatement;
import org.eclipse.cdt.internal.core.dom.rewrite.commenthandler.NodeCommentMap;
-import org.eclipse.cdt.internal.core.dom.rewrite.util.FileContentHelper;
-import org.eclipse.cdt.internal.core.dom.rewrite.util.FileHelper;
-import org.eclipse.core.resources.IFile;
/**
* Generates source code of statement nodes. The actual string operations are delegated
@@ -434,11 +431,7 @@ public class StatementWriter extends NodeWriter {
}
protected int writeMixedStatement(IASTStatement statement) {
- IFile file = FileHelper.getFileFromNode(statement);
- int offset = statement.getFileLocation().getNodeOffset();
- int length = statement.getFileLocation().getNodeLength();
- String code = FileContentHelper.getContent(file, offset, length);
-
+ String code = statement.getRawSignature();
scribe.println(code);
return ASTVisitor.PROCESS_SKIP;
}

Back to the top