Skip to main content

Module: processTargets/modifiers/getContainingScope

Functions

getContainingScope

getContainingScope(scopeHandler, editor, position, direction): undefined | TargetScope

Gets the smallest containing scope, preferring scopes in direction {@link direction}

Parameters

NameType
scopeHandlerScopeHandler
editorTextEditor
positionPosition
directionDirection

Returns

undefined | TargetScope

Defined in

processTargets/modifiers/getContainingScope.ts:14