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

Function allocLFrame

packages/core/src/render3/state.ts:663–668  ·  view source on GitHub ↗

* Allocates next free LFrame. This function tries to reuse the `LFrame`s to lower memory pressure.

()

Source from the content-addressed store, hash-verified

661 * Allocates next free LFrame. This function tries to reuse the `LFrame`s to lower memory pressure.
662 */
663function allocLFrame() {
664 const currentLFrame = instructionState.lFrame;
665 const childLFrame = currentLFrame === null ? null : currentLFrame.child;
666 const newLFrame = childLFrame === null ? createLFrame(currentLFrame) : childLFrame;
667 return newLFrame;
668}
669
670function createLFrame(parent: LFrame | null): LFrame {
671 const lFrame: LFrame = {

Callers 2

enterDIFunction · 0.85
enterViewFunction · 0.85

Calls 1

createLFrameFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…