@Override
protected void doAddNode(ASTEntry entry) {
ASTEntry parent = entry.parent;
if (entry.node instanceof If) {
If entryIf = (If) entry.node;
//treat elifs
if (parent != null && parent.node instanceof If) {
If parentIf = (If) parent.node;
if (parentIf.orelse != null && parentIf.orelse.body != null && parentIf.orelse.body.length > 0
&& parentIf.orelse.body[0] == entryIf) {
parent.endLine = entry.node.beginLine - 1;
if (entry.parent != null) {
entry.parent = entry.parent.parent;