A class (or record or interface) a type name names, seen from `fromFile`.
(typeName: string, fromFile: string, context: ResolutionContext)
| 1000 | |
| 1001 | /** A class (or record or interface) a type name names, seen from `fromFile`. */ |
| 1002 | function classNamed(typeName: string, fromFile: string, context: ResolutionContext): Node | null { |
| 1003 | const simple = typeName.split('.').pop()!.toLowerCase(); |
| 1004 | const memo = memos(context).classByName; |
| 1005 | const key = `${fromFile}|${simple}`; |
| 1006 | if (memo.has(key)) return memo.get(key)!; |
| 1007 | const cls = classThroughAliases(simple, fromFile, context, new Set([key])); |
| 1008 | memo.set(key, cls); |
| 1009 | return cls; |
| 1010 | } |
| 1011 | |
| 1012 | /** |
| 1013 | * The steps an alias walk takes at most: well past any real chain, and short |
no test coverage detected