Finds the name of a declaration, handling special cases like dots in names,
The declaration to find the name for.
The name of the declaration, or a generated name if it is unnamed.
Finds the name of a declaration, handling special cases like dots in names,