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

Function unwrapLView

packages/core/src/render3/util/view_utils.ts:73–81  ·  view source on GitHub ↗
(value: RNode | LView | LContainer)

Source from the content-addressed store, hash-verified

71 * @param value wrapped value of `RNode`, `LView`, `LContainer`
72 */
73export function unwrapLView(value: RNode | LView | LContainer): LView | null {
74 while (Array.isArray(value)) {
75 // This check is same as `isLView()` but we don't call at as we don't want to call
76 // `Array.isArray()` twice and give JITer more work for inlining.
77 if (typeof value[TYPE] === 'object') return value as LView;
78 value = value[HOST] as any;
79 }
80 return null;
81}
82
83/**
84 * Retrieves an element value from the provided `viewData`, by unwrapping

Callers 3

loadComponentRendererFunction · 0.90
serializeLContainerFunction · 0.90

Calls 1

isArrayMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…