Skip to content

SearchMatcher.match method

SearchMatcher › match

Unofficial

Matches this node against a context.

Signature:

match(context: SearchMatchContext): null | SearchMatchResult | undefined

Parameters:

ParameterTypeDescription
contextSearchMatchContextThe context to match.

Returns: null | SearchMatchResult | undefined — The match result, null on no match, or undefined when this node cannot decide for the context.