OLD | NEW |
1 dart_library.library('methods', null, /* Imports */[ | 1 dart_library.library('methods', null, /* Imports */[ |
2 'dart/_runtime', | 2 'dart/_runtime', |
3 'dart/core' | 3 'dart/core' |
4 ], /* Lazy imports */[ | 4 ], /* Lazy imports */[ |
5 ], function(exports, dart, core) { | 5 ], function(exports, dart, core) { |
6 'use strict'; | 6 'use strict'; |
7 let dartx = dart.dartx; | 7 let dartx = dart.dartx; |
8 const _c = Symbol('_c'); | 8 const _c = Symbol('_c'); |
9 class A extends core.Object { | 9 class A extends core.Object { |
10 A() { | 10 A() { |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 this.bar = new Bar(); | 76 this.bar = new Bar(); |
77 } | 77 } |
78 } | 78 } |
79 function test() { | 79 function test() { |
80 let f = new Foo(); | 80 let f = new Foo(); |
81 dart.dcall(f.bar, "Bar's call method!"); | 81 dart.dcall(f.bar, "Bar's call method!"); |
82 let a = new A(); | 82 let a = new A(); |
83 let g = dart.bind(a, 'x'); | 83 let g = dart.bind(a, 'x'); |
84 let aa = new A(); | 84 let aa = new A(); |
85 let h = dart.dload(aa, 'x'); | 85 let h = dart.dload(aa, 'x'); |
86 let ts = dart.fn(dart.toString.bind(a), core.String, []); | 86 let ts = dart.bind(a, 'toString'); |
87 let nsm = dart.fn(dart.noSuchMethod.bind(a), dart.dynamic, [core.Invocation]
); | 87 let nsm = dart.bind(a, 'noSuchMethod'); |
88 let c = dart.bind("", dartx.padLeft); | 88 let c = dart.bind("", dartx.padLeft); |
89 let r = dart.bind(3.0, dartx.floor); | 89 let r = dart.bind(3.0, dartx.floor); |
90 } | 90 } |
91 dart.fn(test); | 91 dart.fn(test); |
92 // Exports: | 92 // Exports: |
93 exports.A = A; | 93 exports.A = A; |
94 exports.Bar = Bar; | 94 exports.Bar = Bar; |
95 exports.Foo = Foo; | 95 exports.Foo = Foo; |
96 exports.test = test; | 96 exports.test = test; |
97 }); | 97 }); |
OLD | NEW |