diff options
author | Roland Praml <praml@foconis.de> | 2018-07-08 17:01:26 +0200 |
---|---|---|
committer | Roel Spilker <r.spilker@gmail.com> | 2018-08-20 21:38:18 +0200 |
commit | a31e9ffdac96737f5a441efa6c80a2394bba63d1 (patch) | |
tree | 14ba3afd3da1786cc743b612dc00baeff8425992 /src/core/lombok/eclipse/EclipseNode.java | |
parent | 13c1fde7a0102fc951a8a488943681f1c57ea27e (diff) | |
download | lombok-a31e9ffdac96737f5a441efa6c80a2394bba63d1.tar.gz lombok-a31e9ffdac96737f5a441efa6c80a2394bba63d1.tar.bz2 lombok-a31e9ffdac96737f5a441efa6c80a2394bba63d1.zip |
use delared ast Type instead of generic one saves a lot of "checkcasts" in the byte code
Diffstat (limited to 'src/core/lombok/eclipse/EclipseNode.java')
-rw-r--r-- | src/core/lombok/eclipse/EclipseNode.java | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/core/lombok/eclipse/EclipseNode.java b/src/core/lombok/eclipse/EclipseNode.java index 4e05fb30..1738c770 100644 --- a/src/core/lombok/eclipse/EclipseNode.java +++ b/src/core/lombok/eclipse/EclipseNode.java @@ -44,11 +44,17 @@ import org.eclipse.jdt.internal.compiler.classfmt.ClassFileConstants; * Eclipse specific version of the LombokNode class. */ public class EclipseNode extends lombok.core.LombokNode<EclipseAST, EclipseNode, ASTNode> { + private EclipseAST ast; /** {@inheritDoc} */ EclipseNode(EclipseAST ast, ASTNode node, List<EclipseNode> children, Kind kind) { - super(ast, node, children, kind); + super(node, children, kind); + this.ast = ast; } + @Override + public EclipseAST getAst() { + return ast; + } /** * Visits this node and all child nodes depth-first, calling the provided visitor's visit methods. */ |