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

Function createLContainer

packages/core/src/render3/view/container.ts:56–82  ·  view source on GitHub ↗
(
  hostNative: RElement | RComment | LView,
  currentView: LView,
  native: RComment,
  tNode: TNode,
)

Source from the content-addressed store, hash-verified

54 * @returns LContainer
55 */
56export function createLContainer(
57 hostNative: RElement | RComment | LView,
58 currentView: LView,
59 native: RComment,
60 tNode: TNode,
61): LContainer {
62 ngDevMode && assertLView(currentView);
63 const lContainer: LContainer = [
64 hostNative, // host native
65 true, // Boolean `true` in this position signifies that this is an `LContainer`
66 0, // flags
67 currentView, // parent
68 null, // next
69 tNode, // t_host
70 null, // dehydrated views
71 native, // native,
72 null, // view refs
73 null, // moved views
74 ];
75 ngDevMode &&
76 assertEqual(
77 lContainer.length,
78 CONTAINER_HEADER_OFFSET,
79 'Should allocate correct number of slots for LContainer header.',
80 );
81 return lContainer;
82}
83
84export function getLViewFromLContainer<T>(
85 lContainer: LContainer,

Callers 3

view_utils_spec.tsFile · 0.90
createContainerRefFunction · 0.90
templateCreateFunction · 0.90

Calls 2

assertLViewFunction · 0.90
assertEqualFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…