(name: string)
| 515 | const keysByName: Record<string, string> = {} |
| 516 | let nameCount = 0 |
| 517 | const keyOfName = (name: string) => { |
| 518 | const kind = kindsByName[name] ?? name.replace(/\$[1-9]\d*$/, "") |
| 519 | return `${kind}#${nameCount++}` |
| 520 | } |
| 521 | // a quote after a backslash is text in a string the hash holds, not a |
| 522 | // reference. Matched by the character before and not a lookbehind, since a |
| 523 | // lookbehind in a literal fails the whole module to parse before Safari 16.4 |
no test coverage detected