code: function getClosestComponentAncestor(node) {
      while (node.tNode.type === 2 /* View */) {
          node = node.view[HOST_NODE];
      }
      return node;
  }
docs: If the node is an embedded view, traverses up the view tree to return the closest
  ancestor view that is attached to a component. If it's already a component node,
  returns itself.