OLD | NEW |
(Empty) | |
| 1 dart_library.library('language/field_method_test', null, /* Imports */[ |
| 2 'dart_sdk' |
| 3 ], function load__field_method_test(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 field_method_test = Object.create(null); |
| 9 let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.definiteFunctionT
ype(dart.dynamic, [])))(); |
| 10 field_method_test.A = class A extends core.Object { |
| 11 new() { |
| 12 this.foo = null; |
| 13 this.foo = dart.fn(() => { |
| 14 }, VoidTodynamic()); |
| 15 } |
| 16 bar() { |
| 17 dart.dcall(this.foo); |
| 18 } |
| 19 }; |
| 20 dart.setSignature(field_method_test.A, { |
| 21 constructors: () => ({new: dart.definiteFunctionType(field_method_test.A, []
)}), |
| 22 methods: () => ({bar: dart.definiteFunctionType(dart.void, [])}) |
| 23 }); |
| 24 field_method_test.FieldMethodTest = class FieldMethodTest extends core.Object
{ |
| 25 static testMain() { |
| 26 new field_method_test.A().bar(); |
| 27 } |
| 28 }; |
| 29 dart.setSignature(field_method_test.FieldMethodTest, { |
| 30 statics: () => ({testMain: dart.definiteFunctionType(dart.dynamic, [])}), |
| 31 names: ['testMain'] |
| 32 }); |
| 33 field_method_test.main = function() { |
| 34 field_method_test.FieldMethodTest.testMain(); |
| 35 }; |
| 36 dart.fn(field_method_test.main, VoidTodynamic()); |
| 37 // Exports: |
| 38 exports.field_method_test = field_method_test; |
| 39 }); |
OLD | NEW |