A framework name heuristic's pick (see name-heuristic.ts), preferring these folders.
( ref: UnresolvedRef, kinds: Set<string>, preferredDirPatterns: string[], context: ResolutionContext, )
| 463 | |
| 464 | /** A framework name heuristic's pick (see name-heuristic.ts), preferring these folders. */ |
| 465 | function resolveByNameAndKind( |
| 466 | ref: UnresolvedRef, |
| 467 | kinds: Set<string>, |
| 468 | preferredDirPatterns: string[], |
| 469 | context: ResolutionContext, |
| 470 | ): string | null { |
| 471 | const picked = pickByNameAndKind(ref, kinds, (f) => preferredDirPatterns.some((d) => f.includes(d)), context); |
| 472 | const type = picked ? context.getNodeById?.(picked) : undefined; |
| 473 | return type && !csharpTypeArityFits(type, ref, context) ? null : picked; |
| 474 | } |
no test coverage detected