build: fix circular dep between interface and l_node by merging (#20855)

PR Close #20855
This commit is contained in:
Miško Hevery
2017-12-21 21:40:58 -08:00
committed by Igor Minar
parent 66528a21f6
commit 5a7bf36723
17 changed files with 451 additions and 432 deletions
@@ -7,12 +7,12 @@
*/
import {assertNotNull} from './assert';
import {ContainerState, ProjectionState, ViewOrContainerState, ViewState} from './interfaces';
import {LContainer, LElement, LNode, LNodeFlags, LProjection, LText, LView} from './l_node';
import {ContainerState, LContainer, LElement, LNode, LNodeFlags, LProjection, LText, LView, ProjectionState, ViewOrContainerState, ViewState} from './interfaces';
import {assertNodeType} from './node_assert';
import {ProceduralRenderer3, RComment, RElement, RNode, RText} from './renderer';
/**
* Finds the closest DOM node above a given container in the hierarchy.
*
@@ -56,8 +56,7 @@ export function findNativeParent(containerNode: LContainer): RNode|null {
* @param native Comment anchor for container
* @returns The DOM element for which the view should insert elements
*/
export function findBeforeNode(index: number, state: ContainerState, native: RComment): RElement|
RText|RComment {
function findBeforeNode(index: number, state: ContainerState, native: RNode): RNode {
const views = state.views;
// Find the node to insert in front of
return index + 1 < views.length ?