MCPcopy
hub / github.com/angular/angular / unwrapRNode

Function unwrapRNode

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

Source from the content-addressed store, hash-verified

60 * @param value wrapped value of `RNode`, `LView`, `LContainer`
61 */
62export function unwrapRNode(value: RNode | LView | LContainer): RNode {
63 while (Array.isArray(value)) {
64 value = value[HOST] as any;
65 }
66 return value as RNode;
67}
68
69/**
70 * Returns `LView` or `null` if not found.

Callers 15

createAnchorNodeFunction · 0.90
getFirstNativeNodeFunction · 0.90
applyNodesFunction · 0.90
applyContainerFunction · 0.90
getLContextFunction · 0.90
findViaNativeElementFunction · 0.90
collectNativeNodesFunction · 0.90
applyMutableOpCodesFunction · 0.90
listenToDomEventFunction · 0.90
getListenersFunction · 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…