MCPcopy Index your code
hub / github.com/angular/angular / locateOrCreateAnchorNode

Function locateOrCreateAnchorNode

packages/core/src/linker/view_container_ref.ts:816–828  ·  view source on GitHub ↗
(
  lContainer: LContainer,
  hostLView: LView,
  hostTNode: TNode,
  slotValue: any,
)

Source from the content-addressed store, hash-verified

814}
815
816function locateOrCreateAnchorNode(
817 lContainer: LContainer,
818 hostLView: LView,
819 hostTNode: TNode,
820 slotValue: any,
821): void {
822 if (!_populateDehydratedViewsInLContainer(lContainer, hostTNode, hostLView)) {
823 // Populating dehydrated views operation returned `false`, which indicates
824 // that the logic was running in client-only mode, this an anchor comment
825 // node should be created for this container.
826 createAnchorNode(lContainer, hostLView, hostTNode, slotValue);
827 }
828}
829
830export function enableLocateOrCreateContainerRefImpl() {
831 _locateOrCreateAnchorNode = locateOrCreateAnchorNode;

Callers

nothing calls this directly

Calls 2

createAnchorNodeFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…