MCPcopy Create free account
hub / github.com/continuedev/continue / getNodePosition

Function getNodePosition

core/nextEdit/NextEditEditableRegionCalculator.ts:756–764  ·  view source on GitHub ↗
(node: Parser.SyntaxNode)

Source from the content-addressed store, hash-verified

754
755// Helper function to get a node's position.
756function getNodePosition(node: Parser.SyntaxNode): Position | null {
757 if (!node) return null;
758
759 // Tree-sitter nodes have startPosition property that contains row and column.
760 return {
761 line: node.startPosition.row,
762 character: node.startPosition.column,
763 };
764}
765
766/* OTHER HELPER FUNCTIONS */
767

Callers 1

staticRerankJumpFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected