diff options
author | Reinier Zwitserloot <reinier@zwitserloot.com> | 2011-06-02 06:37:01 +0200 |
---|---|---|
committer | Reinier Zwitserloot <reinier@zwitserloot.com> | 2011-06-02 06:43:48 +0200 |
commit | 964b82124dd92e91652925a450ab9208e41df601 (patch) | |
tree | ef92d5c72f86fc70ceb4e4693b188bedc5e9ed40 /src/core/lombok/eclipse/EclipseNode.java | |
parent | cd6eee36cfc10e2dcb1dc12cbaa27db7c0b384a5 (diff) | |
download | lombok-964b82124dd92e91652925a450ab9208e41df601.tar.gz lombok-964b82124dd92e91652925a450ab9208e41df601.tar.bz2 lombok-964b82124dd92e91652925a450ab9208e41df601.zip |
Eclipse handlers can now opt out of being run in diet-parse mode. Fixes Synchronized and SneakyThrows
Diffstat (limited to 'src/core/lombok/eclipse/EclipseNode.java')
-rw-r--r-- | src/core/lombok/eclipse/EclipseNode.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/core/lombok/eclipse/EclipseNode.java b/src/core/lombok/eclipse/EclipseNode.java index e6fd1b03..62238a1c 100644 --- a/src/core/lombok/eclipse/EclipseNode.java +++ b/src/core/lombok/eclipse/EclipseNode.java @@ -1,5 +1,5 @@ /* - * Copyright © 2009-2010 Reinier Zwitserloot and Roel Spilker. + * Copyright © 2009-2011 Reinier Zwitserloot and Roel Spilker. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal @@ -50,6 +50,8 @@ public class EclipseNode extends lombok.core.LombokNode<EclipseAST, EclipseNode, * Visits this node and all child nodes depth-first, calling the provided visitor's visit methods. */ public void traverse(EclipseASTVisitor visitor) { + if (!this.isCompleteParse() && visitor.deferUntilPostDiet()) return; + switch (getKind()) { case COMPILATION_UNIT: visitor.visitCompilationUnit(this, (CompilationUnitDeclaration)get()); |