(node: ts.Node, name: string)
| 2768 | } |
| 2769 | |
| 2770 | function publicDeclarationRange(node: ts.Node, name: string): readonly [number, number] { |
| 2771 | if (ts.isVariableStatement(node)) { |
| 2772 | const declaration = node.declarationList.declarations.find((item) => |
| 2773 | ts.isIdentifier(item.name) && item.name.text === name |
| 2774 | ) |
| 2775 | if (declaration !== undefined) return nodeRange(declaration) |
| 2776 | } |
| 2777 | return nodeRange(node) |
| 2778 | } |
| 2779 | |
| 2780 | function bucketOfTs(node: ts.Node): ExportBucket | undefined { |
| 2781 | if (ts.isVariableStatement(node) || ts.isFunctionDeclaration(node) || ts.isClassDeclaration(node)) return "value" |
no test coverage detected