Module: processTargets/modifiers/surroundingPair/getSurroundingPairOffsets
Functions
getSurroundingPairOffsets
▸ getSurroundingPairOffsets(delimiter1
, delimiter2
): SurroundingPairOffsets
Given a pair of delimiters, returns a pair of start and end offsets
Parameters
Name | Type | Description |
---|---|---|
delimiter1 | DelimiterOccurrence | The first delimiter occurrence |
delimiter2 | DelimiterOccurrence | The second delimiter occurrence |
Returns
A pair of start and end offsets for the given delimiters
Defined in
processTargets/modifiers/surroundingPair/getSurroundingPairOffsets.ts:10