Skip to main content

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

NameType
modifierRelativeScopeModifier

Defined in

processTargets/modifiers/RelativeExclusiveScopeStage.ts:19

Methods

run

run(context, target): Target[]

Parameters

NameType
contextProcessedTargetsContext
targetTarget

Returns

Target[]

Implementation of

ModifierStage.run

Defined in

processTargets/modifiers/RelativeExclusiveScopeStage.ts:21