A class (or record or interface) a type name names, seen from `fromFile`.
(typeName: string, fromFile: string, context: ResolutionContext)
| 2536 | |
| 2537 | /** A class (or record or interface) a type name names, seen from `fromFile`. */ |
| 2538 | function classNamed(typeName: string, fromFile: string, context: ResolutionContext): Node | null { |
| 2539 | const simple = typeName.split('.').pop()!.toLowerCase(); |
| 2540 | const memo = memos(context).classByName; |
| 2541 | const key = `${fromFile}|${simple}`; |
| 2542 | if (memo.has(key)) return memo.get(key)!; |
| 2543 | const cls = classThroughAliases(simple, fromFile, context, new Set([key])); |
| 2544 | memo.set(key, cls); |
| 2545 | return cls; |
| 2546 | } |
| 2547 | |
| 2548 | /** |
| 2549 | * The steps an alias walk takes at most: well past any real chain, and short |
no test coverage detected