@@ -20,7 +20,7 @@ import {ProceduralRenderer3, RElement, RNode, RText, Renderer3, isProceduralRend
2020import { isLContainer , isLView , isRootView } from './interfaces/type_checks' ;
2121import { CHILD_HEAD , CLEANUP , DECLARATION_COMPONENT_VIEW , DECLARATION_LCONTAINER , FLAGS , HOST , HookData , LView , LViewFlags , NEXT , PARENT , QUERIES , RENDERER , TVIEW , T_HOST , unusedValueExportToPlacateAjd as unused5 } from './interfaces/view' ;
2222import { assertNodeOfPossibleTypes , assertNodeType } from './node_assert' ;
23- import { findComponentView , getLViewParent } from './util/view_traversal_utils' ;
23+ import { getLViewParent } from './util/view_traversal_utils' ;
2424import { getNativeByTNode , unwrapRNode } from './util/view_utils' ;
2525
2626const unusedValueToPlacateAjd = unused1 + unused2 + unused3 + unused4 + unused5 ;
@@ -261,7 +261,7 @@ function trackMovedView(declarationContainer: LContainer, lView: LView) {
261261 const movedViews = declarationContainer [ MOVED_VIEWS ] ;
262262 const insertedLContainer = lView [ PARENT ] as LContainer ;
263263 ngDevMode && assertLContainer ( insertedLContainer ) ;
264- const insertedComponentLView = insertedLContainer [ PARENT ] ! [ DECLARATION_COMPONENT_VIEW ] ! ;
264+ const insertedComponentLView = insertedLContainer [ PARENT ] ! [ DECLARATION_COMPONENT_VIEW ] ;
265265 ngDevMode && assertDefined ( insertedComponentLView , 'Missing insertedComponentLView' ) ;
266266 const insertedComponentIsOnPush =
267267 ( insertedComponentLView [ FLAGS ] & LViewFlags . CheckAlways ) !== LViewFlags . CheckAlways ;
@@ -695,7 +695,7 @@ function getFirstNativeNode(lView: LView, tNode: TNode | null): RNode|null {
695695 return getNativeByTNode ( tNode , lView ) ;
696696 }
697697 } else {
698- const componentView = findComponentView ( lView ) ;
698+ const componentView = lView [ DECLARATION_COMPONENT_VIEW ] ;
699699 const componentHost = componentView [ T_HOST ] as TElementNode ;
700700 const parentView = getLViewParent ( componentView ) ;
701701 const firstProjectedTNode : TNode | null =
@@ -846,7 +846,7 @@ export function applyProjection(lView: LView, tProjectionNode: TProjectionNode)
846846function applyProjectionRecursive (
847847 renderer : Renderer3 , action : WalkTNodeTreeAction , lView : LView ,
848848 tProjectionNode : TProjectionNode , renderParent : RElement | null , beforeNode : RNode | null ) {
849- const componentLView = findComponentView ( lView ) ;
849+ const componentLView = lView [ DECLARATION_COMPONENT_VIEW ] ;
850850 const componentNode = componentLView [ T_HOST ] as TElementNode ;
851851 ngDevMode &&
852852 assertEqual ( typeof tProjectionNode . projection , 'number' , 'expecting projection index' ) ;
0 commit comments