MCPcopy Create free account
hub / github.com/cursorless-dev/cursorless / getNodeInternalRange

Function getNodeInternalRange

src/util/nodeSelectors.ts:36–43  ·  view source on GitHub ↗
(node: SyntaxNode)

Source from the content-addressed store, hash-verified

34 * @returns The internal range of the given node
35 */
36export function getNodeInternalRange(node: SyntaxNode) {
37 const children = node.children;
38
39 return makeRangeFromPositions(
40 children[0].endPosition,
41 children[children.length - 1].startPosition
42 );
43}
44
45export function simpleSelectionExtractor(
46 editor: TextEditor,

Calls 1

makeRangeFromPositionsFunction · 0.85

Tested by

no test coverage detected