Function getMatchingDirection

  • Returns the direction which which the given node will be matched relative to the closest parent alternative.

    If the given node is a lookaround, then the result of getMatchingDirection(lookaround) will be the same as getMatchingDirection(lookaround.parent).

    Parameters

    • node: Node

    Returns MatchingDirection