(node: Parser.SyntaxNode)
| 747 | |
| 748 | // Helper function to get a node's text. |
| 749 | function getNodeText(node: Parser.SyntaxNode): string { |
| 750 | if (!node) return ""; |
| 751 | |
| 752 | return node.text; |
| 753 | } |
| 754 | |
| 755 | // Helper function to get a node's position. |
| 756 | function getNodePosition(node: Parser.SyntaxNode): Position | null { |