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