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

Function walkUpViews

packages/core/src/render3/util/view_utils.ts:223–234  ·  view source on GitHub ↗
(nestingLevel: number, currentView: LView)

Source from the content-addressed store, hash-verified

221 * @param currentView View from which to start the lookup.
222 */
223export function walkUpViews(nestingLevel: number, currentView: LView): LView {
224 while (nestingLevel > 0) {
225 ngDevMode &&
226 assertDefined(
227 currentView[DECLARATION_VIEW],
228 'Declaration view should be defined if nesting level is greater than 0.',
229 );
230 currentView = currentView[DECLARATION_VIEW]!;
231 nestingLevel--;
232 }
233 return currentView;
234}
235
236export function requiresRefreshOrTraversal(lView: LView) {
237 return !!(

Callers 2

nextContextImplFunction · 0.90
getTriggerLViewFunction · 0.90

Calls 1

assertDefinedFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…