Function: generateUniqueName()
generateUniqueName(
prefix,existingNames):string
Generates a unique name with the specified prefix. Internal use only.
Parameters
prefix
string
the prefix.
existingNames
Set<string>
the set of existing names to match with which uniqueness will be checked.
Returns
string
the generated name.