(node: ts.Node, name: string)
| 2838 | } |
| 2839 | |
| 2840 | function publicDeclarationRange(node: ts.Node, name: string): readonly [number, number] { |
| 2841 | if (ts.isVariableStatement(node)) { |
| 2842 | const declaration = node.declarationList.declarations.find((item) => |
| 2843 | ts.isIdentifier(item.name) && item.name.text === name |
| 2844 | ) |
| 2845 | if (declaration !== undefined) return nodeRange(declaration) |
| 2846 | } |
| 2847 | return nodeRange(node) |
| 2848 | } |
| 2849 | |
| 2850 | function bucketOfTs(node: ts.Node): ExportBucket | undefined { |
| 2851 | if (ts.isVariableStatement(node) || ts.isFunctionDeclaration(node) || ts.isClassDeclaration(node)) return "value" |
no test coverage detected