Skip to main content

Module: processTargets/modifiers/scopeHandlers/getScopeRelativeToPosition

Functions

getScopeRelativeToPosition

getScopeRelativeToPosition(scopeHandler, editor, position, offset, direction): TargetScope

Runs the scope generator until offset scopes have been yielded and returns that scope, only yielding scopes that start after or equal position

Parameters

NameType
scopeHandlerScopeHandler
editorTextEditor
positionPosition
offsetnumber
directionDirection

Returns

TargetScope

Defined in

processTargets/modifiers/scopeHandlers/getScopeRelativeToPosition.ts:17