> if (stmt instanceof InvokeExpr) { That won't work: a stmt is never an expression. It only sometimes *has* an expression. Also, stmt.containsInvokeExpr() can return true for both an InvokeStmt and an AssignStmt... Eric