findCommonTreeParent method

Node? findCommonTreeParent(
  1. Node other
)

Find the Node that is the perhaps indirect tree parent of both this node and another one, or this node if it is an ancestor of the other node, or vice-versa.

If you want to find the Group that contains two Parts, call Part#findCommonContainingGroup. @param {Node} other @return {Node} may be null if in different trees, or may be itself if the OTHER argument is THIS node, or may be itself if the OTHER node is a descendant of THIS node, or may be the OTHER node if THIS node is in the tree of the OTHER node. @see #findTreeRoot @see #findTreeParentChain @since 1.5

Implementation

_i3.Node? findCommonTreeParent(_i3.Node other) => _i4.callMethod(
      this,
      'findCommonTreeParent',
      [other],
    );