99 AstVisitor ,
1010 Binary ,
1111 Chain ,
12- Structural ,
1312 Conditional ,
1413 Formatter ,
14+ Pipe ,
1515 FunctionCall ,
1616 ImplicitReceiver ,
1717 Interpolation ,
@@ -41,12 +41,12 @@ import {
4141 RECORD_TYPE_PRIMITIVE_OP ,
4242 RECORD_TYPE_KEYED_ACCESS ,
4343 RECORD_TYPE_INVOKE_FORMATTER ,
44- RECORD_TYPE_STRUCTURAL_CHECK ,
44+ RECORD_TYPE_PIPE ,
4545 RECORD_TYPE_INTERPOLATE
4646 } from './proto_record' ;
4747
4848export class ProtoChangeDetector {
49- addAst ( ast :AST , bindingMemento :any , directiveMemento :any = null , structural : boolean = false ) { }
49+ addAst ( ast :AST , bindingMemento :any , directiveMemento :any = null ) { }
5050 instantiate ( dispatcher :any , formatters :Map ) :ChangeDetector {
5151 return null ;
5252 }
@@ -64,8 +64,8 @@ export class DynamicProtoChangeDetector extends ProtoChangeDetector {
6464 this . _recordBuilder = new ProtoRecordBuilder ( ) ;
6565 }
6666
67- addAst ( ast :AST , bindingMemento :any , directiveMemento :any = null , structural : boolean = false ) {
68- this . _recordBuilder . addAst ( ast , bindingMemento , directiveMemento , structural ) ;
67+ addAst ( ast :AST , bindingMemento :any , directiveMemento :any = null ) {
68+ this . _recordBuilder . addAst ( ast , bindingMemento , directiveMemento ) ;
6969 }
7070
7171 instantiate ( dispatcher :any , formatters :Map ) {
@@ -95,8 +95,8 @@ export class JitProtoChangeDetector extends ProtoChangeDetector {
9595 this . _recordBuilder = new ProtoRecordBuilder ( ) ;
9696 }
9797
98- addAst ( ast :AST , bindingMemento :any , directiveMemento :any = null , structural : boolean = false ) {
99- this . _recordBuilder . addAst ( ast , bindingMemento , directiveMemento , structural ) ;
98+ addAst ( ast :AST , bindingMemento :any , directiveMemento :any = null ) {
99+ this . _recordBuilder . addAst ( ast , bindingMemento , directiveMemento ) ;
100100 }
101101
102102 instantiate ( dispatcher :any , formatters :Map ) {
@@ -121,9 +121,7 @@ class ProtoRecordBuilder {
121121 this . records = [ ] ;
122122 }
123123
124- addAst(ast:AST, bindingMemento:any, directiveMemento:any = null, structural:boolean = false) {
125- if ( structural ) ast = new Structural ( ast ) ;
126-
124+ addAst(ast:AST, bindingMemento:any, directiveMemento:any = null) {
127125 var last = ListWrapper . last ( this . records ) ;
128126 if ( isPresent ( last ) && last . directiveMemento == directiveMemento ) {
129127 last . lastInDirective = false ;
@@ -228,9 +226,9 @@ class _ConvertAstIntoProtoRecords {
228226 ChangeDetectionUtil . cond , [ c , t , f ] , null , 0 ) ;
229227 }
230228
231- visitStructural (ast:Structural ) {
232- var value = ast . value . visit ( this ) ;
233- return this . _addRecord ( RECORD_TYPE_STRUCTURAL_CHECK , "structural" , null , [ ] , null , value ) ;
229+ visitPipe (ast:Pipe ) {
230+ var value = ast . exp . visit ( this ) ;
231+ return this . _addRecord ( RECORD_TYPE_PIPE , ast . name , ast . name , [ ] , null , value ) ;
234232 }
235233
236234 visitKeyedAccess(ast:KeyedAccess) {
0 commit comments