Skip to main content

Module: processTargets/modifiers/ItemStage/getIterationScope

Functions

getIterationScope

getIterationScope(context, target): Object

Get the iteration scope range for item scope. Try to find non-string surrounding scope with a fallback to line content.

Parameters

NameTypeDescription
contextProcessedTargetsContextThe stage process context
targetTargetThe stage target

Returns

Object

The stage iteration scope and optional surrounding pair boundaries

NameType
boundary?[Range, Range]
rangeRange

Defined in

processTargets/modifiers/ItemStage/getIterationScope.ts:15