66 * found in the LICENSE file at https://angular.io/license
77 */
88
9- import { ɵC as C , ɵE as E , ɵRenderFlags as RenderFlags , ɵT as T , ɵV as V , ɵb as b , ɵcR as cR , ɵcr as cr , ɵdefineComponent as defineComponent , ɵdetectChanges as _detectChanges , ɵe as e , ɵi1 as i1 , ɵp as p , ɵsn as sn , ɵt as t , ɵv as v } from '@angular/core' ;
9+ import { ɵC as C , ɵE as E , ɵRenderFlags as RenderFlags , ɵT as T , ɵV as V , ɵb as b , ɵcR as cR , ɵcr as cr , ɵdefineComponent as defineComponent , ɵdetectChanges as _detectChanges , ɵe as e , ɵi1 as i1 , ɵp as p , ɵs as s , ɵsa as sa , ɵsm as sm , ɵsp as sp , ɵt as t , ɵv as v } from '@angular/core' ;
1010
1111import { TreeNode , buildTree , emptyTree } from '../util' ;
1212
@@ -30,6 +30,7 @@ export function detectChanges(component: TreeComponent) {
3030 numberOfChecksEl . textContent = `${ detectChangesRuns } ` ;
3131}
3232
33+ const c0 = [ 'background-color' ] ;
3334export class TreeComponent {
3435 data : TreeNode = emptyTree ;
3536
@@ -40,15 +41,16 @@ export class TreeComponent {
4041 template : function ( rf : RenderFlags , ctx : TreeComponent ) {
4142 if ( rf & RenderFlags . Create ) {
4243 E ( 0 , 'span' ) ;
43- { T ( 1 ) ; }
44+ s ( 1 , c0 ) ;
45+ { T ( 2 ) ; }
4446 e ( ) ;
45- C ( 2 ) ;
4647 C ( 3 ) ;
48+ C ( 4 ) ;
4749 }
4850 if ( rf & RenderFlags . Update ) {
49- sn ( 0 , 'background-color' , b ( ctx . data . depth % 2 ? '' : 'grey' ) ) ;
50- t ( 1 , i1 ( ' ' , ctx . data . value , ' ' ) ) ;
51- cR ( 2 ) ;
51+ sp ( 1 , 0 , ctx . data . depth % 2 ? '' : 'grey' ) ;
52+ t ( 2 , i1 ( ' ' , ctx . data . value , ' ' ) ) ;
53+ cR ( 3 ) ;
5254 {
5355 if ( ctx . data . left != null ) {
5456 let rf0 = V ( 0 ) ;
@@ -65,7 +67,7 @@ export class TreeComponent {
6567 }
6668 }
6769 cr ( ) ;
68- cR ( 3 ) ;
70+ cR ( 4 ) ;
6971 {
7072 if ( ctx . data . right != null ) {
7173 let rf0 = V ( 0 ) ;
@@ -106,22 +108,24 @@ export class TreeFunction {
106108 } ) ;
107109}
108110
111+ const c1 = [ 'background-color' ] ;
109112export function TreeTpl ( rf : RenderFlags , ctx : TreeNode ) {
110113 if ( rf & RenderFlags . Create ) {
111114 E ( 0 , 'tree' ) ;
112115 {
113116 E ( 1 , 'span' ) ;
114- { T ( 2 ) ; }
117+ s ( 2 , c1 ) ;
118+ { T ( 3 ) ; }
115119 e ( ) ;
116- C ( 3 ) ;
117120 C ( 4 ) ;
121+ C ( 5 ) ;
118122 }
119123 e ( ) ;
120124 }
121125 if ( rf & RenderFlags . Update ) {
122- sn ( 1 , 'background-color' , b ( ctx . depth % 2 ? '' : 'grey' ) ) ;
123- t ( 2 , i1 ( ' ' , ctx . value , ' ' ) ) ;
124- cR ( 3 ) ;
126+ sp ( 2 , 0 , ctx . depth % 2 ? '' : 'grey' ) ;
127+ t ( 3 , i1 ( ' ' , ctx . value , ' ' ) ) ;
128+ cR ( 4 ) ;
125129 {
126130 if ( ctx . left != null ) {
127131 let rf0 = V ( 0 ) ;
@@ -130,7 +134,7 @@ export function TreeTpl(rf: RenderFlags, ctx: TreeNode) {
130134 }
131135 }
132136 cr ( ) ;
133- cR ( 4 ) ;
137+ cR ( 5 ) ;
134138 {
135139 if ( ctx . right != null ) {
136140 let rf0 = V ( 0 ) ;
0 commit comments