A type's key for comparing two of them: the built-in keyword or the lowercased name, `[]` for an array.
(t: VbType)
| 103 | |
| 104 | /** A type's key for comparing two of them: the built-in keyword or the lowercased name, `[]` for an array. */ |
| 105 | function typeKey(t: VbType): string { |
| 106 | const lower = t.name.toLowerCase(); |
| 107 | return `${VB_BUILTIN_TYPES.get(lower) ?? lower}${t.array ? '[]' : ''}`; |
| 108 | } |
| 109 | |
| 110 | function isBuiltin(t: VbType): boolean { |
| 111 | return !t.array && VB_BUILTIN_TYPES.has(t.name.toLowerCase()); |
no test coverage detected