SearchMatcher.getContext method
SearchMatcher › getContext
Unofficial
Finds the matcher that owns the query token at a cursor offset.Signature:
getContext(offset: number): null | SearchMatcherTokenContextParameters:
| Parameter | Type | Description |
|---|---|---|
| offset | number | The offset in the raw query string. |
Returns: null | SearchMatcherTokenContext — The token and the chain of matchers that own it, or null if none does.