OLD | NEW |
1 var methods; | 1 var methods; |
2 (function(exports) { | 2 (function(exports) { |
3 'use strict'; | 3 'use strict'; |
4 let _c = Symbol('_c'); | 4 let _c = Symbol('_c'); |
5 class A extends core.Object { | 5 class A extends core.Object { |
6 A() { | 6 A() { |
7 this[_c] = 3; | 7 this[_c] = 3; |
8 } | 8 } |
9 x() { | 9 x() { |
10 return 42; | 10 return 42; |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 } | 47 } |
48 } | 48 } |
49 class Foo extends core.Object { | 49 class Foo extends core.Object { |
50 Foo() { | 50 Foo() { |
51 this.bar = new Bar(); | 51 this.bar = new Bar(); |
52 } | 52 } |
53 } | 53 } |
54 // Function test: () → dynamic | 54 // Function test: () → dynamic |
55 function test() { | 55 function test() { |
56 let f = new Foo(); | 56 let f = new Foo(); |
57 dart.dsend(f, 'bar', "Bar's call method!"); | 57 dart.dcall(f.bar, "Bar's call method!"); |
58 } | 58 } |
59 // Exports: | 59 // Exports: |
60 exports.A = A; | 60 exports.A = A; |
61 exports.Bar = Bar; | 61 exports.Bar = Bar; |
62 exports.Foo = Foo; | 62 exports.Foo = Foo; |
63 exports.test = test; | 63 exports.test = test; |
64 })(methods || (methods = {})); | 64 })(methods || (methods = {})); |
OLD | NEW |