aboutsummaryrefslogtreecommitdiff
path: root/src/lombok/eclipse/EclipseAST.java
diff options
context:
space:
mode:
authorReinier Zwitserloot <reinier@tipit.to>2009-06-15 23:36:55 +0200
committerReinier Zwitserloot <reinier@tipit.to>2009-06-15 23:36:55 +0200
commit92ab0e7971df9d1efc9345f17ad48355df95161a (patch)
tree1916e8de1c062f50ebf824a9ce6f93a3fc4753ea /src/lombok/eclipse/EclipseAST.java
parentc2fd0a1ef514ec109f7f1b544f46bfb8338b7e8f (diff)
downloadlombok-92ab0e7971df9d1efc9345f17ad48355df95161a.tar.gz
lombok-92ab0e7971df9d1efc9345f17ad48355df95161a.tar.bz2
lombok-92ab0e7971df9d1efc9345f17ad48355df95161a.zip
Switched the level of the Node object you get during a visitAnnotationOnX call from the Field/Type/Method/Local to the Annotation, so that you can interact with its handled flag.
Diffstat (limited to 'src/lombok/eclipse/EclipseAST.java')
-rw-r--r--src/lombok/eclipse/EclipseAST.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lombok/eclipse/EclipseAST.java b/src/lombok/eclipse/EclipseAST.java
index 9fed839c..3fdd02e4 100644
--- a/src/lombok/eclipse/EclipseAST.java
+++ b/src/lombok/eclipse/EclipseAST.java
@@ -64,13 +64,13 @@ public class EclipseAST {
} else if ( n instanceof Annotation ) {
Node parent = child.up();
if ( parent.node instanceof TypeDeclaration )
- visitor.visitAnnotationOnType(parent, (TypeDeclaration)parent.node, (Annotation)n);
+ visitor.visitAnnotationOnType((TypeDeclaration)parent.node, child, (Annotation)n);
else if ( parent.node instanceof AbstractMethodDeclaration )
- visitor.visitAnnotationOnMethod(parent, (AbstractMethodDeclaration)parent.node, (Annotation)n);
+ visitor.visitAnnotationOnMethod((AbstractMethodDeclaration)parent.node, child, (Annotation)n);
else if ( parent.node instanceof FieldDeclaration )
- visitor.visitAnnotationOnField(parent, (FieldDeclaration)parent.node, (Annotation)n);
+ visitor.visitAnnotationOnField((FieldDeclaration)parent.node, child, (Annotation)n);
else if ( parent.node instanceof LocalDeclaration )
- visitor.visitAnnotationOnLocal(parent, (LocalDeclaration)parent.node, (Annotation)n);
+ visitor.visitAnnotationOnLocal((LocalDeclaration)parent.node, child, (Annotation)n);
} else if ( n instanceof Statement ) {
visitor.visitStatement(child, (Statement)n);
traverseChildren(visitor, child);