code: function createDirectivesAndLocals(localRefs) {
      var node = previousOrParentNode;
      if (firstTemplatePass) {
          ngDevMode && ngDevMode.firstTemplatePass++;
          cacheMatchingDirectivesForNode(node.tNode, tView, localRefs || null);
      }
      else {
          instantiateDirectivesDirectly();
      }
      saveResolvedLocalsInData();
  }
docs: Creates directive instances and populates local refs.
  
  @param localRefs Local refs of the current node