OLD | NEW |
(Empty) | |
| 1 dart_library.library('language/external_test_20_multi', null, /* Imports */[ |
| 2 'dart_sdk' |
| 3 ], function load__external_test_20_multi(exports, dart_sdk) { |
| 4 'use strict'; |
| 5 const core = dart_sdk.core; |
| 6 const dart = dart_sdk.dart; |
| 7 const dartx = dart_sdk.dartx; |
| 8 const external_test_20_multi = Object.create(null); |
| 9 let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.definiteFunctionT
ype(dart.dynamic, [])))(); |
| 10 external_test_20_multi.Bar = class Bar extends core.Object { |
| 11 new(val) { |
| 12 } |
| 13 }; |
| 14 dart.setSignature(external_test_20_multi.Bar, { |
| 15 constructors: () => ({new: dart.definiteFunctionType(external_test_20_multi.
Bar, [dart.dynamic])}) |
| 16 }); |
| 17 external_test_20_multi.Foo = class Foo extends core.Object { |
| 18 f() {} |
| 19 new() { |
| 20 this.x = 0; |
| 21 } |
| 22 }; |
| 23 dart.defineNamedConstructor(external_test_20_multi.Foo, 'n20'); |
| 24 dart.setSignature(external_test_20_multi.Foo, { |
| 25 constructors: () => ({ |
| 26 new: dart.definiteFunctionType(external_test_20_multi.Foo, []), |
| 27 n20: dart.definiteFunctionType(external_test_20_multi.Foo, [dart.dynamic]) |
| 28 }), |
| 29 methods: () => ({f: dart.definiteFunctionType(dart.dynamic, [])}) |
| 30 }); |
| 31 external_test_20_multi.main = function() { |
| 32 let foo = new external_test_20_multi.Foo(); |
| 33 new external_test_20_multi.Foo.n20(1); |
| 34 }; |
| 35 dart.fn(external_test_20_multi.main, VoidTodynamic()); |
| 36 // Exports: |
| 37 exports.external_test_20_multi = external_test_20_multi; |
| 38 }); |
OLD | NEW |