File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed
modules/angular2/src/change_detection/parser Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -410,11 +410,16 @@ export class AstTransformer implements AstVisitor {
410410 return res ;
411411 }
412412
413- visitChain ( ast : Chain ) { throw new BaseException ( 'Not implemented' ) ; }
413+ visitChain ( ast : Chain ) { return new Chain ( this . visitAll ( ast . expressions ) ) ; }
414414
415- visitAssignment ( ast : Assignment ) { throw new BaseException ( 'Not implemented' ) ; }
415+ visitAssignment ( ast : Assignment ) {
416+ return new Assignment ( ast . target . visit ( this ) , ast . value . visit ( this ) ) ;
417+ }
416418
417- visitIf ( ast : If ) { throw new BaseException ( 'Not implemented' ) ; }
419+ visitIf ( ast : If ) {
420+ let falseExp = isPresent ( ast . falseExp ) ? ast . falseExp . visit ( this ) : null ;
421+ return new If ( ast . condition . visit ( this ) , ast . trueExp . visit ( this ) , falseExp ) ;
422+ }
418423}
419424
420425var _evalListCache = [
You can’t perform that action at this time.
0 commit comments