summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpelder2006-07-31 13:21:56 (EDT)
committerpelder2006-07-31 13:21:56 (EDT)
commite79f2b3ac9d49a11c928f395888148668c642702 (patch)
tree5d40f5bb96198116153a859d9c0194a42d38fd4d
parentc14e8a1a44f8e083528a6acbd54993a4ec05cf8b (diff)
downloadorg.eclipse.jet-e79f2b3ac9d49a11c928f395888148668c642702.zip
org.eclipse.jet-e79f2b3ac9d49a11c928f395888148668c642702.tar.gz
org.eclipse.jet-e79f2b3ac9d49a11c928f395888148668c642702.tar.bz2
[150947] Add comment trimming to TextTrimmingVisitor. Refactor visibility and location to facilitate JUnits.
-rw-r--r--plugins/org.eclipse.jet/src/org/eclipse/jet/compiler/JET2Compiler.java1
-rw-r--r--plugins/org.eclipse.jet/src/org/eclipse/jet/internal/compiler/TextTrimmingVisitor.java (renamed from plugins/org.eclipse.jet/src/org/eclipse/jet/compiler/TextTrimmingVisitor.java)22
2 files changed, 18 insertions, 5 deletions
diff --git a/plugins/org.eclipse.jet/src/org/eclipse/jet/compiler/JET2Compiler.java b/plugins/org.eclipse.jet/src/org/eclipse/jet/compiler/JET2Compiler.java
index 9420185..254ecac 100644
--- a/plugins/org.eclipse.jet/src/org/eclipse/jet/compiler/JET2Compiler.java
+++ b/plugins/org.eclipse.jet/src/org/eclipse/jet/compiler/JET2Compiler.java
@@ -45,6 +45,7 @@ import org.eclipse.jet.internal.JETActivatorWrapper;
import org.eclipse.jet.internal.compiler.JETCompilerState;
import org.eclipse.jet.internal.compiler.LoaderGenerationParameters;
import org.eclipse.jet.internal.compiler.TemplateRunner;
+import org.eclipse.jet.internal.compiler.TextTrimmingVisitor;
import org.eclipse.jet.internal.l10n.JET2Messages;
import org.eclipse.jet.internal.parser.ParseProblemSeverity;
import org.eclipse.jet.taglib.TagLibraryReference;
diff --git a/plugins/org.eclipse.jet/src/org/eclipse/jet/compiler/TextTrimmingVisitor.java b/plugins/org.eclipse.jet/src/org/eclipse/jet/internal/compiler/TextTrimmingVisitor.java
index a6dd34b..8911930 100644
--- a/plugins/org.eclipse.jet/src/org/eclipse/jet/compiler/TextTrimmingVisitor.java
+++ b/plugins/org.eclipse.jet/src/org/eclipse/jet/internal/compiler/TextTrimmingVisitor.java
@@ -15,9 +15,21 @@
* $Id$
*/
-package org.eclipse.jet.compiler;
-
-
+package org.eclipse.jet.internal.compiler;
+
+
+import org.eclipse.jet.compiler.Comment;
+import org.eclipse.jet.compiler.DefaultJET2ASTVisitor;
+import org.eclipse.jet.compiler.JET2ASTElement;
+import org.eclipse.jet.compiler.JET2ASTVisitor;
+import org.eclipse.jet.compiler.JET2Declaration;
+import org.eclipse.jet.compiler.JET2Directive;
+import org.eclipse.jet.compiler.JET2Expression;
+import org.eclipse.jet.compiler.JET2Scriptlet;
+import org.eclipse.jet.compiler.TextElement;
+import org.eclipse.jet.compiler.XMLBodyElement;
+import org.eclipse.jet.compiler.XMLBodyElementEnd;
+import org.eclipse.jet.compiler.XMLEmptyElement;
import org.eclipse.jet.internal.parser.LineInfo;
@@ -25,7 +37,7 @@ import org.eclipse.jet.internal.parser.LineInfo;
* A JET AST Visitor that strips whitespace and new-lines
*
*/
-class TextTrimmingVisitor extends DefaultJET2ASTVisitor implements JET2ASTVisitor
+public class TextTrimmingVisitor extends DefaultJET2ASTVisitor implements JET2ASTVisitor
{
/**
*
@@ -158,6 +170,6 @@ class TextTrimmingVisitor extends DefaultJET2ASTVisitor implements JET2ASTVisito
public void visit(Comment comment)
{
-// checkAndStrip(comment);
+ checkAndStrip(comment);
}
}