Skip to main content

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

NameTypeDescription
isReversedbooleanWhether the returned target should have active before anchor
scope1TargetScopeA scope forming one end of the range
scope2TargetScopeA scope forming another end of the range

Returns

Target

A target consisting of a range between {@link scope1} and {@link scope2}

Defined in

processTargets/modifiers/constructScopeRangeTarget.ts:16