docs: function addToViewTree(currentView, adjustedHostIndex, state) {
      if (currentView[TAIL]) {
          currentView[TAIL][NEXT] = state;
      }
      else if (firstTemplatePass) {
          tView.childIndex = adjustedHostIndex;
      }
      currentView[TAIL] = state;
      return state;
  }