get typed ast from anon functions