Adding varArgs info when creating a variable declaration from
a SingleVariableDeclaration AST node in Visitor
@@ -214,7 +214,7 @@ public class Visitor extends ASTVisitor {
}
public boolean visit(SingleVariableDeclaration node) {
- VariableDeclaration variableDeclaration = new VariableDeclaration(cu, filePath, node);
+ VariableDeclaration variableDeclaration = new VariableDeclaration(cu, filePath, node, node.isVarargs());
variableDeclarations.add(variableDeclaration);
if(current.getUserObject() != null) {
AnonymousClassDeclarationObject anonymous = (AnonymousClassDeclarationObject)current.getUserObject();
