diff options
author | Reinier Zwitserloot <reinier@tipit.to> | 2009-06-15 22:32:44 +0200 |
---|---|---|
committer | Reinier Zwitserloot <reinier@tipit.to> | 2009-06-15 22:32:44 +0200 |
commit | eebc3450e4272688e09d1eadbaa61ea171fff1f7 (patch) | |
tree | f9778910b6ee22666fab4ea860b604b258201ca3 /src/lombok/eclipse/EclipseASTAdapter.java | |
parent | d2ffd52636113c5737e32779938511ae68a1a0fe (diff) | |
download | lombok-eebc3450e4272688e09d1eadbaa61ea171fff1f7.tar.gz lombok-eebc3450e4272688e09d1eadbaa61ea171fff1f7.tar.bz2 lombok-eebc3450e4272688e09d1eadbaa61ea171fff1f7.zip |
all eclipse AST Statements objects are now part of the custom AST we build for lombok.
This way something like @AutoClose on a local var declaration can walk up one node, find
all mentions of the variable, and add a close call right after the last mention.
Diffstat (limited to 'src/lombok/eclipse/EclipseASTAdapter.java')
-rw-r--r-- | src/lombok/eclipse/EclipseASTAdapter.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lombok/eclipse/EclipseASTAdapter.java b/src/lombok/eclipse/EclipseASTAdapter.java index a76380cf..50fded89 100644 --- a/src/lombok/eclipse/EclipseASTAdapter.java +++ b/src/lombok/eclipse/EclipseASTAdapter.java @@ -7,6 +7,7 @@ import org.eclipse.jdt.internal.compiler.ast.CompilationUnitDeclaration; import org.eclipse.jdt.internal.compiler.ast.FieldDeclaration; import org.eclipse.jdt.internal.compiler.ast.Initializer; import org.eclipse.jdt.internal.compiler.ast.LocalDeclaration; +import org.eclipse.jdt.internal.compiler.ast.Statement; import org.eclipse.jdt.internal.compiler.ast.TypeDeclaration; public abstract class EclipseASTAdapter implements EclipseASTVisitor { @@ -22,4 +23,6 @@ public abstract class EclipseASTAdapter implements EclipseASTVisitor { @Override public void endVisitMethod(Node node, AbstractMethodDeclaration method) {} @Override public void visitLocal(Node node, LocalDeclaration local) {} @Override public void endVisitLocal(Node node, LocalDeclaration local) {} + @Override public void visitStatement(Node node, Statement statement) {} + @Override public void endVisitStatement(Node node, Statement statement) {} } |