Skip to content

SearchMatcher.getContext method

SearchMatcher › getContext

Unofficial

Finds the matcher that owns the query token at a cursor offset.

Signature:

getContext(offset: number): null | SearchMatcherTokenContext

Parameters:

ParameterTypeDescription
offsetnumberThe offset in the raw query string.

Returns: null | SearchMatcherTokenContext — The token and the chain of matchers that own it, or null if none does.