These are chat archives for javaparser/javaparser/issue-101

May 2019
May 07 11:20
Hi , I'm working in a code with javaparser, I have to calculate the maximum length from the node to the root of a tree(AST), I'm thinking to use getAllAncestors but it's not a good idea because I want a value of this length,... I'm thinking also to use getParents and { c=myNode.getParents(); if (c != null) { c.getParents().get(); value++}} ... but it doesn't work . Also I'm pretty new to use javaparser.