Find all names in scope before resolving