code: function addToViewTree(currentView, adjustedHostIndex, state) {
      if (currentView[TAIL]) {
          currentView[TAIL][NEXT] = state;
      }
      else if (firstTemplatePass) {
          tView.childIndex = adjustedHostIndex;
      }
      currentView[TAIL] = state;
      return state;
  }
docs: Adds LViewData or LContainer to the end of the current view tree.
  
  This structure will be used to traverse through nested views to remove listeners
  and call onDestroy callbacks.
  
  @param currentView The view where LViewData or LContainer should be added
  @param adjustedHostIndex Index of the view's host node in LViewData[], adjusted for header
  @param state The LViewData or LContainer to add to the view tree
  @returns The state passed in