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

Function createLFrame

packages/core/src/render3/state.ts:670–690  ·  view source on GitHub ↗
(parent: LFrame | null)

Source from the content-addressed store, hash-verified

668}
669
670function createLFrame(parent: LFrame | null): LFrame {
671 const lFrame: LFrame = {
672 currentTNode: null,
673 isParent: true,
674 lView: null!,
675 tView: null!,
676 selectedIndex: -1,
677 contextLView: null,
678 elementDepthCount: 0,
679 currentNamespace: null,
680 currentDirectiveIndex: -1,
681 bindingRootIndex: -1,
682 bindingIndex: -1,
683 currentQueryIndex: 0,
684 parent: parent!,
685 child: null,
686 inI18n: false,
687 };
688 parent !== null && (parent.child = lFrame); // link the new LFrame for reuse.
689 return lFrame;
690}
691
692/**
693 * A lightweight version of leave which is used with DI.

Callers 2

state.tsFile · 0.85
allocLFrameFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…