(node: Node)
| 270 | } |
| 271 | |
| 272 | function getSymbolRangeNode(node: Node): Node { |
| 273 | const parent = node.parent; |
| 274 | if (parent?.type === 'export_statement') { |
| 275 | return parent; |
| 276 | } |
| 277 | return node; |
| 278 | } |
| 279 | |
| 280 | function buildSymbol(node: Node, content: string): TreeSitterSymbol { |
| 281 | const rangeNode = getSymbolRangeNode(node); |