refactor(ivy): prefix viewStart & viewEnd with embedded (#22055)

PR Close #22055
This commit is contained in:
Victor Berchet
2018-02-06 17:27:16 -08:00
committed by Miško Hevery
parent 8feb8e5408
commit 10a014d89e
14 changed files with 196 additions and 195 deletions

View File

@ -59,8 +59,8 @@ export {
text as T,
textBinding as t,
viewStart as V,
viewEnd as v,
embeddedViewStart as V,
embeddedViewEnd as v,
} from './instructions';
export {

View File

@ -1091,12 +1091,12 @@ function refreshDynamicChildren() {
}
/**
* Creates an LViewNode.
* Marks the start of an embedded view.
*
* @param viewBlockId The ID of this view
* @return Whether or not this view is in creation mode
* @return boolean Whether or not this view is in creation mode
*/
export function viewStart(viewBlockId: number): boolean {
export function embeddedViewStart(viewBlockId: number): boolean {
const container =
(isParent ? previousOrParentNode : previousOrParentNode.parent !) as LContainerNode;
ngDevMode && assertNodeType(container, LNodeFlags.Container);
@ -1148,8 +1148,8 @@ function getOrCreateEmbeddedTView(viewIndex: number, parent: LContainerNode): TV
return tContainer[viewIndex];
}
/** Marks the end of the LViewNode. */
export function viewEnd(): void {
/** Marks the end of an embedded view. */
export function embeddedViewEnd(): void {
isParent = false;
const viewNode = previousOrParentNode = currentView.node as LViewNode;
const container = previousOrParentNode.parent as LContainerNode;