| OLD | NEW |
| 1 var cascade; | 1 var cascade; |
| 2 (function(exports) { | 2 (function(exports) { |
| 3 'use strict'; | 3 'use strict'; |
| 4 class A extends core.Object { | 4 class A extends core.Object { |
| 5 A() { | 5 A() { |
| 6 this.x = null; | 6 dart.initField(A, this, 'x', null); |
| 7 } | 7 } |
| 8 } | 8 } |
| 9 // Function test_closure_with_mutate: () → void | 9 // Function test_closure_with_mutate: () → void |
| 10 function test_closure_with_mutate() { | 10 function test_closure_with_mutate() { |
| 11 let a = new A(); | 11 let a = new A(); |
| 12 a.x = () => { | 12 a.x = () => { |
| 13 core.print("hi"); | 13 core.print("hi"); |
| 14 a = null; | 14 a = null; |
| 15 }; | 15 }; |
| 16 let _ = a; | 16 let _ = a; |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 let a = new A(); | 78 let a = new A(); |
| 79 let y = ((() => { | 79 let y = ((() => { |
| 80 a.x = dart.dsend(a.x, '+', 1); | 80 a.x = dart.dsend(a.x, '+', 1); |
| 81 a.x = dart.dsend(a.x, '-', 1); | 81 a.x = dart.dsend(a.x, '-', 1); |
| 82 return a; | 82 return a; |
| 83 })()); | 83 })()); |
| 84 } | 84 } |
| 85 let Base$ = dart.generic(function(T) { | 85 let Base$ = dart.generic(function(T) { |
| 86 class Base extends core.Object { | 86 class Base extends core.Object { |
| 87 Base() { | 87 Base() { |
| 88 this.x = new core.List$(T).from([]); | 88 dart.initField(Base, this, 'x', new core.List$(T).from([])); |
| 89 } | 89 } |
| 90 } | 90 } |
| 91 return Base; | 91 return Base; |
| 92 }); | 92 }); |
| 93 let Base = Base$(); | 93 let Base = Base$(); |
| 94 class Foo extends Base$(core.int) { | 94 class Foo extends Base$(core.int) { |
| 95 test_final_field_generic(t) { | 95 test_final_field_generic(t) { |
| 96 this.x[core.$add](1); | 96 this.x[core.$add](1); |
| 97 this.x[core.$add](2); | 97 this.x[core.$add](2); |
| 98 this.x[core.$add](3); | 98 this.x[core.$add](3); |
| 99 this.x[core.$add](4); | 99 this.x[core.$add](4); |
| 100 } | 100 } |
| 101 } | 101 } |
| 102 // Exports: | 102 // Exports: |
| 103 exports.A = A; | 103 exports.A = A; |
| 104 exports.test_closure_with_mutate = test_closure_with_mutate; | 104 exports.test_closure_with_mutate = test_closure_with_mutate; |
| 105 exports.test_closure_without_mutate = test_closure_without_mutate; | 105 exports.test_closure_without_mutate = test_closure_without_mutate; |
| 106 exports.test_mutate_inside_cascade = test_mutate_inside_cascade; | 106 exports.test_mutate_inside_cascade = test_mutate_inside_cascade; |
| 107 exports.test_mutate_outside_cascade = test_mutate_outside_cascade; | 107 exports.test_mutate_outside_cascade = test_mutate_outside_cascade; |
| 108 exports.test_VariableDeclaration_single = test_VariableDeclaration_single; | 108 exports.test_VariableDeclaration_single = test_VariableDeclaration_single; |
| 109 exports.test_VariableDeclaration_last = test_VariableDeclaration_last; | 109 exports.test_VariableDeclaration_last = test_VariableDeclaration_last; |
| 110 exports.test_VariableDeclaration_first = test_VariableDeclaration_first; | 110 exports.test_VariableDeclaration_first = test_VariableDeclaration_first; |
| 111 exports.test_increment = test_increment; | 111 exports.test_increment = test_increment; |
| 112 exports.Base$ = Base$; | 112 exports.Base$ = Base$; |
| 113 exports.Base = Base; | 113 exports.Base = Base; |
| 114 exports.Foo = Foo; | 114 exports.Foo = Foo; |
| 115 })(cascade || (cascade = {})); | 115 })(cascade || (cascade = {})); |
| OLD | NEW |