refactor(core): Remove TViewNode as it is no longer used. (#38707)

Previous commit change the logic to not rely on the `TViewNode` this
change removes it entirely.

PR Close #38707
This commit is contained in:
Misko Hevery
2020-09-14 13:06:05 -07:00
committed by Alex Rickabaugh
parent eb32b6bd6b
commit 5db84d7221
23 changed files with 77 additions and 227 deletions

View File

@ -24,22 +24,18 @@ export const enum TNodeType {
* The TNode contains information about an `<ng-content>` projection
*/
Projection = 1,
/**
* The TNode contains information about an {@link LView}
*/
View = 2,
/**
* The TNode contains information about a DOM element aka {@link RNode}.
*/
Element = 3,
Element = 2,
/**
* The TNode contains information about an `<ng-container>` element {@link RNode}.
*/
ElementContainer = 4,
ElementContainer = 3,
/**
* The TNode contains information about an ICU comment used in `i18n`.
*/
IcuContainer = 5,
IcuContainer = 4,
}
/**
@ -49,10 +45,9 @@ export const enum TNodeType {
export const TNodeTypeAsString = [
'Container', // 0
'Projection', // 1
'View', // 2
'Element', // 3
'ElementContainer', // 4
'IcuContainer' // 5
'Element', // 2
'ElementContainer', // 3
'IcuContainer' // 4
] as const;
@ -726,16 +721,6 @@ export interface TIcuContainerNode extends TNode {
projection: null;
}
/** Static data for a view */
export interface TViewNode extends TNode {
/** If -1, it's a dynamically created view. Otherwise, it is the view block ID. */
index: number;
child: TElementNode|TTextNode|TElementContainerNode|TContainerNode|TProjectionNode|null;
parent: TContainerNode|null;
tViews: null;
projection: null;
}
/** Static data for an LProjectionNode */
export interface TProjectionNode extends TNode {
/** Index in the data[] array */