/** * Returns the statement containing the function call. * * @return the ancestor statement of the function call. */ public Statement getStatement() { Statement ret = fcall.getStatement(); // initial statement in a for statement should return the for statement. if (ret.getParent() instanceof ForLoop) { ret = (Statement) ret.getParent(); } return ret; }