( editor: TextEditor, node: SyntaxNode )
| 43 | } |
| 44 | |
| 45 | export function simpleSelectionExtractor( |
| 46 | editor: TextEditor, |
| 47 | node: SyntaxNode |
| 48 | ): SelectionWithContext { |
| 49 | return { |
| 50 | selection: new Selection( |
| 51 | new Position(node.startPosition.row, node.startPosition.column), |
| 52 | new Position(node.endPosition.row, node.endPosition.column) |
| 53 | ), |
| 54 | context: {}, |
| 55 | }; |
| 56 | } |
| 57 | |
| 58 | /** |
| 59 | * Extracts a selection from the first node to the second node. |
no outgoing calls
no test coverage detected