(node: TSNode | null, code: string)
| 11 | * Get text content of an AST node |
| 12 | */ |
| 13 | export function getNodeText(node: TSNode | null, code: string): string { |
| 14 | if (!node) {return '';} |
| 15 | return code.substring(node.startIndex, node.endIndex); |
| 16 | } |
| 17 | |
| 18 | /** |
| 19 | * Query all nodes of a specific type in the AST |
no outgoing calls
no test coverage detected