The innermost namespace block a node starts in.
(node: Pick<Node, 'startLine' | 'startColumn'>, blocks: readonly NamespaceBlock[])
| 3149 | |
| 3150 | /** The innermost namespace block a node starts in. */ |
| 3151 | function innermostBlock(node: Pick<Node, 'startLine' | 'startColumn'>, blocks: readonly NamespaceBlock[]): NamespaceBlock | undefined { |
| 3152 | let inner: NamespaceBlock | undefined; |
| 3153 | for (const block of blocks) { |
| 3154 | if (!inBlock(node, block)) continue; |
| 3155 | if (!inner || block.startLine > inner.startLine || (block.startLine === inner.startLine && block.startColumn > inner.startColumn)) inner = block; |
| 3156 | } |
| 3157 | return inner; |
| 3158 | } |
| 3159 | |
| 3160 | /** The file that declares the namespace a module exports as `name`, through its re-exports, and the name it declares it under. */ |
| 3161 | function namespaceDeclaringFile( |
no test coverage detected