Skip to main content

Class: RelativeScopeStage

processTargets/modifiers/RelativeScopeStage.RelativeScopeStage

Implements relative scope modifiers like "next funk", "two tokens", etc. Proceeds by determining whether the modifier wants to include the scope(s) touching the input target (ie if {@link modifier.offset} is 0), and then delegating to RelativeInclusiveScopeStage if so, or RelativeExclusiveScopeStage if not.

Implements

Constructors

constructor

new RelativeScopeStage(modifier)

Parameters

NameType
modifierRelativeScopeModifier

Defined in

processTargets/modifiers/RelativeScopeStage.ts:17

Properties

modiferStage

Private modiferStage: ModifierStage

Defined in

processTargets/modifiers/RelativeScopeStage.ts:16

Methods

run

run(context, target): Target[]

Parameters

NameType
contextProcessedTargetsContext
targetTarget

Returns

Target[]

Implementation of

ModifierStage.run

Defined in

processTargets/modifiers/RelativeScopeStage.ts:24