code: function getOrCreateTemplateRef(di) {
      if (!di.templateRef) {
          ngDevMode && assertNodeType(di.node, 0 /* Container */);
          var hostNode = di.node;
          var hostTNode = hostNode.tNode;
          ngDevMode && assertDefined(hostTNode.tViews, 'TView must be allocated');
          di.templateRef = new TemplateRef$1(getOrCreateElementRef(di), hostTNode.tViews, getRenderer(), hostNode.data[QUERIES]);
      }
      return di.templateRef;
  }
docs: Creates a TemplateRef and stores it on the injector. Or, if the TemplateRef already
  exists, retrieves the existing TemplateRef.
  
  @param di The node injector where we should store a created TemplateRef
  @returns The TemplateRef instance to use