diff options
author | Reinier Zwitserloot <reinier@tipit.to> | 2009-06-27 04:00:12 +0200 |
---|---|---|
committer | Reinier Zwitserloot <reinier@tipit.to> | 2009-06-27 04:00:12 +0200 |
commit | b4cab3f65c854ba4bda03528a87bff7654ccb817 (patch) | |
tree | 0fa16b171032b919ca8592a65a8e26c6f5e6aba0 /src/lombok/eclipse/TransformEclipseAST.java | |
parent | b9714eae8ced8d22a319a471331be3a522ebccce (diff) | |
download | lombok-b4cab3f65c854ba4bda03528a87bff7654ccb817.tar.gz lombok-b4cab3f65c854ba4bda03528a87bff7654ccb817.tar.bz2 lombok-b4cab3f65c854ba4bda03528a87bff7654ccb817.zip |
[IMPROVEMENT]
Eclipse will now also hold off on running @PrintAST handlers until the very end. Simple generators such as @Getter didn't need this, because PrintAST's handler will hold off until eclipse does a full parse,
but when changing the innards of methods, you would likely not see what you did. Fixed that.
Also, PrintAST has an option to, instead of diving into the ASTNodes of bodies (methods, initializers, etc), to just render the java code, to see if the AST creation/rewriting you've been doing looks like the java code you intended.
Diffstat (limited to 'src/lombok/eclipse/TransformEclipseAST.java')
-rw-r--r-- | src/lombok/eclipse/TransformEclipseAST.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lombok/eclipse/TransformEclipseAST.java b/src/lombok/eclipse/TransformEclipseAST.java index a43be699..66d663f4 100644 --- a/src/lombok/eclipse/TransformEclipseAST.java +++ b/src/lombok/eclipse/TransformEclipseAST.java @@ -103,8 +103,11 @@ public class TransformEclipseAST { } public void go() { + handlers.skipPrintAST(); ast.traverse(new AnnotationVisitor()); handlers.callASTVisitors(ast); + handlers.skipAllButPrintAST(); + ast.traverse(new AnnotationVisitor()); } private static class AnnotationVisitor extends EclipseASTAdapter { |