(nestingLevel: number, currentView: LView)
| 221 | * @param currentView View from which to start the lookup. |
| 222 | */ |
| 223 | export 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 | |
| 236 | export function requiresRefreshOrTraversal(lView: LView) { |
| 237 | return !!( |
no test coverage detected
searching dependent graphs…