static Set nlLogic_constructNames(Exp exp) { final new HashSet set; nlLogic_visitShallow(exp, voidfunc(O o) { if (o cast Func) set.add(o.name); if (o cast Literal) set.add(o.text()); }); ret set; }