ClassDef classNode = (ClassDef) node;
for (stmtType statement : classNode.body) {
if (nodeHelper.isInit(statement)) {
FunctionDef func = (FunctionDef) statement;
stmtType lastStmt = func.body[func.body.length - 1];
LastLineVisitor visitor = VisitorFactory.createVisitor(LastLineVisitor.class, lastStmt);
return visitor.getLastLine();
}
}
}
return super.getLine();
}