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
| Name | Type |
|---|---|
modifier | RelativeScopeModifier |
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
| Name | Type |
|---|---|
context | ProcessedTargetsContext |
target | Target |
Returns
Target[]
Implementation of
Defined in
processTargets/modifiers/RelativeScopeStage.ts:24