If “the whole town came out” means its residents, which relation applies?

Literal and Figurative Usage: Metonymy and Types of Metaphor