The lines (first, last) of the routines a file nests in others.
(filePath: string, context: ResolutionContext)
| 1728 | |
| 1729 | /** The lines (first, last) of the routines a file nests in others. */ |
| 1730 | function nestedRoutineSpans(filePath: string, context: ResolutionContext): Array<[number, number]> { |
| 1731 | const memo = memos(context).nestedSpans; |
| 1732 | let spans = memo.get(filePath); |
| 1733 | if (!spans) { |
| 1734 | spans = context.getNodesInFile(filePath) |
| 1735 | .filter((n) => isNestedRoutine(n, context)) |
| 1736 | .map((n): [number, number] => [n.startLine, n.endLine ?? n.startLine]); |
| 1737 | memo.set(filePath, spans); |
| 1738 | } |
| 1739 | return spans; |
| 1740 | } |
| 1741 | |
| 1742 | /** Roots every class or interface has, whose members a call by name doesn't reach in the project. */ |
| 1743 | const IMPLICIT_ROOTS: ReadonlySet<string> = new Set(['tobject', 'tinterfacedobject', 'iinterface', 'iunknown', 'idispatch']); |
no test coverage detected