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 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() { |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 function test_mutate_outside_cascade() { | 43 function test_mutate_outside_cascade() { |
44 let a = null, b = null; | 44 let a = null, b = null; |
45 a = new A(); | 45 a = new A(); |
46 dart.dput(a, 'x', b = null); | 46 dart.dput(a, 'x', b = null); |
47 dart.dput(a, 'x', b = null); | 47 dart.dput(a, 'x', b = null); |
48 a = null; | 48 a = null; |
49 core.print(a); | 49 core.print(a); |
50 } | 50 } |
51 // Function test_VariableDeclaration_single: () → void | 51 // Function test_VariableDeclaration_single: () → void |
52 function test_VariableDeclaration_single() { | 52 function test_VariableDeclaration_single() { |
53 let a = new List.from([]); | 53 let a = new core.List.from([]); |
54 dart.dput(a, 'length', 2); | 54 dart.dput(a, 'length', 2); |
55 a.add(42); | 55 a.add(42); |
56 core.print(a); | 56 core.print(a); |
57 } | 57 } |
58 // Function test_VariableDeclaration_last: () → void | 58 // Function test_VariableDeclaration_last: () → void |
59 function test_VariableDeclaration_last() { | 59 function test_VariableDeclaration_last() { |
60 let a = 42, b = new List.from([]); | 60 let a = 42, b = new core.List.from([]); |
61 dart.dput(b, 'length', 2); | 61 dart.dput(b, 'length', 2); |
62 b.add(a); | 62 b.add(a); |
63 core.print(b); | 63 core.print(b); |
64 } | 64 } |
65 // Function test_VariableDeclaration_first: () → void | 65 // Function test_VariableDeclaration_first: () → void |
66 function test_VariableDeclaration_first() { | 66 function test_VariableDeclaration_first() { |
67 let a = ((_) => { | 67 let a = ((_) => { |
68 _.length = 2; | 68 _.length = 2; |
69 _.add(3); | 69 _.add(3); |
70 return _; | 70 return _; |
71 })(new List.from([])), b = 2; | 71 })(new core.List.from([])), b = 2; |
72 core.print(a); | 72 core.print(a); |
73 } | 73 } |
74 // Exports: | 74 // Exports: |
75 exports.A = A; | 75 exports.A = A; |
76 exports.test_closure_with_mutate = test_closure_with_mutate; | 76 exports.test_closure_with_mutate = test_closure_with_mutate; |
77 exports.test_closure_without_mutate = test_closure_without_mutate; | 77 exports.test_closure_without_mutate = test_closure_without_mutate; |
78 exports.test_mutate_inside_cascade = test_mutate_inside_cascade; | 78 exports.test_mutate_inside_cascade = test_mutate_inside_cascade; |
79 exports.test_mutate_outside_cascade = test_mutate_outside_cascade; | 79 exports.test_mutate_outside_cascade = test_mutate_outside_cascade; |
80 exports.test_VariableDeclaration_single = test_VariableDeclaration_single; | 80 exports.test_VariableDeclaration_single = test_VariableDeclaration_single; |
81 exports.test_VariableDeclaration_last = test_VariableDeclaration_last; | 81 exports.test_VariableDeclaration_last = test_VariableDeclaration_last; |
82 exports.test_VariableDeclaration_first = test_VariableDeclaration_first; | 82 exports.test_VariableDeclaration_first = test_VariableDeclaration_first; |
83 })(cascade || (cascade = {})); | 83 })(cascade || (cascade = {})); |
OLD | NEW |