Module: processTargets/modifiers/scopeHandlers/compareTargetScopes
Functions
compareTargetScopes
▸ compareTargetScopes(direction
, position
, param2
, param3
): number
Defines the canonical scope ordering.
Parameters
Name | Type | Description |
---|---|---|
direction | Direction | The direction of iteration |
position | Position | The initial position |
param2 | TargetScope | Scope A |
param3 | TargetScope | Scope B |
Returns
number
-1 if scope A should be yielded before scope B, 1 if scope A should be yielded after scope B, and 0 if they are equivalent by this ordering
Defined in
processTargets/modifiers/scopeHandlers/compareTargetScopes.ts:15