MCPcopy
hub / github.com/angular/angular / readPatchedLView

Function readPatchedLView

packages/core/src/render3/context_discovery.ts:214–220  ·  view source on GitHub ↗
(target: any)

Source from the content-addressed store, hash-verified

212}
213
214export function readPatchedLView<T>(target: any): LView<T> | null {
215 const value = readPatchedData(target);
216 if (value) {
217 return (isLView(value) ? value : value.lView) as LView<T>;
218 }
219 return null;
220}
221
222export function isComponentInstance(instance: any): boolean {
223 return instance && instance.constructor && instance.constructor.ɵcmp;

Callers 4

getClosestComponentNameFunction · 0.90
getRootViewFunction · 0.90
getRootComponentsFunction · 0.90

Calls 2

isLViewFunction · 0.90
readPatchedDataFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…