Module: processTargets/modifiers/constructScopeRangeTarget
Functions
constructScopeRangeTarget
▸ constructScopeRangeTarget(isReversed
, scope1
, scope2
): Target
Constructs a target consisting of a range between {@link scope1} and {@link scope2}. The order of {@link scope1} and {@link scope2} doesn't matter; this function will automatically figure out which one should be the start of the range, and which should be the end.
Parameters
Name | Type | Description |
---|---|---|
isReversed | boolean | Whether the returned target should have active before anchor |
scope1 | TargetScope | A scope forming one end of the range |
scope2 | TargetScope | A scope forming another end of the range |
Returns
A target consisting of a range between {@link scope1} and {@link scope2}
Defined in
processTargets/modifiers/constructScopeRangeTarget.ts:16