(node: SyntaxNode)
| 34 | * @returns The internal range of the given node |
| 35 | */ |
| 36 | export 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 | |
| 45 | export function simpleSelectionExtractor( |
| 46 | editor: TextEditor, |
no test coverage detected