Module: processTargets/modifiers/surroundingPair/extractSelectionFromSurroundingPairOffsets
Interfaces
Functions
extractSelectionFromSurroundingPairOffsets
▸ extractSelectionFromSurroundingPairOffsets(document
, baseOffset
, surroundingPairOffsets
): SurroundingPairInfo
Given offsets describing a surrounding pair, returns a selection
Parameters
Name | Type | Description |
---|---|---|
document | TextDocument | The document containing the pairs |
baseOffset | number | The base offset to be added to all given offsets |
surroundingPairOffsets | SurroundingPairOffsets | A pair of start/end offsets corresponding to a delimiter pair |
Returns
A selection corresponding to the delimiter pair
Defined in
processTargets/modifiers/surroundingPair/extractSelectionFromSurroundingPairOffsets.ts:19