Class: RelativeExclusiveScopeStage
processTargets/modifiers/RelativeExclusiveScopeStage.RelativeExclusiveScopeStage
Handles relative modifiers that don't include targets intersecting with the input, eg "next funk", "previous two tokens". Proceeds by running ScopeHandler.generateScopes to get the desired scopes, skipping the first scope if input range is empty and is at start of that scope.
Implements
Constructors
constructor
• new RelativeExclusiveScopeStage(modifier
)
Parameters
Name | Type |
---|---|
modifier | RelativeScopeModifier |
Defined in
processTargets/modifiers/RelativeExclusiveScopeStage.ts:19
Methods
run
▸ run(context
, target
): Target
[]
Parameters
Name | Type |
---|---|
context | ProcessedTargetsContext |
target | Target |
Returns
Target
[]
Implementation of
Defined in
processTargets/modifiers/RelativeExclusiveScopeStage.ts:21