MCPcopy
hub / github.com/angular/angular / readPatchedData

Function readPatchedData

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

Source from the content-addressed store, hash-verified

206 * a component, directive or a DOM node).
207 */
208export function readPatchedData(target: any): LView | LContext | null {
209 ngDevMode && assertDefined(target, 'Target expected');
210 const data = target[MONKEY_PATCH_KEY_NAME];
211 return typeof data === 'number' ? getLViewById(data) : data || null;
212}
213
214export function readPatchedLView<T>(target: any): LView<T> | null {
215 const value = readPatchedData(target);

Callers 7

getLContextFunction · 0.85
readLViewFunction · 0.85
readPatchedLViewFunction · 0.85

Calls 2

assertDefinedFunction · 0.90
getLViewByIdFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…