Generate code for local name-list.