static Expression derefFunc(Expression afunc) { if (afunc instanceof ReferenceExp) { Declaration func_decl = ((ReferenceExp) afunc).binding; func_decl = Declaration.followAliases(func_decl); if (func_decl != null && !func_decl.getFlag(Declaration.IS_UNKNOWN)) afunc = func_decl.getValue(); } return afunc; }