Skip to content

Commit

Permalink
Variable Decleration in Expression was not working
Browse files Browse the repository at this point in the history
  • Loading branch information
reisi007 committed Feb 2, 2018
1 parent 59f4933 commit 0155242
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -1207,6 +1207,7 @@ public boolean visit(UsesDirective node) {
public boolean visit(VariableDeclarationExpression node) {
JavaTreeArtifactData variableDeclaration = new JavaTreeArtifactData();
variableDeclaration.setType(EXPRESSION_VARIABLE_DECLARATION);
variableDeclaration.setOrdered(true);
final Node.Op variableDeclarationNode = newNode.apply(variableDeclaration);
parentEccoNode.addChildren(variableDeclarationNode);
handleModifiers(node.modifiers(), variableDeclarationNode);
Expand All @@ -1228,7 +1229,6 @@ public boolean visit(VariableDeclarationExpression node) {
public boolean visit(VariableDeclarationStatement node) {
JavaTreeArtifactData variableDeclaration = new JavaTreeArtifactData();
variableDeclaration.setType(STATEMENT_VARIABLE_DECLARATION);
variableDeclaration.setType(STATEMENT_VARIABLE_DECLARATION);
variableDeclaration.setOrdered(true);
final Node.Op variableDeclarationNode = newNode.apply(variableDeclaration);
parentEccoNode.addChild(variableDeclarationNode);
Expand Down

0 comments on commit 0155242

Please sign in to comment.