refactor(ivy): rename tView.firstTemplatePass to tView.firstCreatePass (#31270)

PR Close #31270
This commit is contained in:
Matias Niemelä
2019-11-01 13:06:17 -07:00
committed by atscott
parent 91147ade2e
commit 9c13d6e8e6
24 changed files with 83 additions and 83 deletions

View File

@ -174,7 +174,7 @@ export function createRootComponentView(
rootView, getOrCreateTView(def), null, def.onPush ? LViewFlags.Dirty : LViewFlags.CheckAlways,
rootView[HEADER_OFFSET], tNode, rendererFactory, renderer, sanitizer);
if (tView.firstTemplatePass) {
if (tView.firstCreatePass) {
diPublicInInjector(getOrCreateNodeInjectorForNode(tNode, rootView), tView, def.type);
markAsComponentHost(tView, tNode);
initNodeFlags(tNode, rootView.length, 1);
@ -209,14 +209,14 @@ export function createRootComponent<T>(
}
const rootTNode = getPreviousOrParentTNode();
if (tView.firstTemplatePass && componentDef.hostBindings) {
if (tView.firstCreatePass && componentDef.hostBindings) {
const elementIndex = rootTNode.index - HEADER_OFFSET;
setActiveHostElement(elementIndex);
incrementActiveDirectiveId();
const expando = tView.expandoInstructions !;
invokeHostBindingsInCreationMode(
componentDef, expando, component, rootTNode, tView.firstTemplatePass);
componentDef, expando, component, rootTNode, tView.firstCreatePass);
setActiveHostElement(null);
}