OLD | NEW |
(Empty) | |
| 1 dart_library.library('language/if_null_behavior_test_none_multi', null, /* Impor
ts */[ |
| 2 'dart_sdk' |
| 3 ], function load__if_null_behavior_test_none_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 if_null_behavior_test_none_multi = Object.create(null); |
| 9 let VoidToB = () => (VoidToB = dart.constFn(dart.definiteFunctionType(if_null_
behavior_test_none_multi.B, [])))(); |
| 10 let VoidToC = () => (VoidToC = dart.constFn(dart.definiteFunctionType(if_null_
behavior_test_none_multi.C, [])))(); |
| 11 let dynamicTodynamic = () => (dynamicTodynamic = dart.constFn(dart.definiteFun
ctionType(dart.dynamic, [dart.dynamic])))(); |
| 12 let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.definiteFunctionT
ype(dart.dynamic, [])))(); |
| 13 if_null_behavior_test_none_multi.A = class A extends core.Object { |
| 14 new(a) { |
| 15 this.a = a; |
| 16 } |
| 17 }; |
| 18 dart.setSignature(if_null_behavior_test_none_multi.A, { |
| 19 constructors: () => ({new: dart.definiteFunctionType(if_null_behavior_test_n
one_multi.A, [core.String])}) |
| 20 }); |
| 21 if_null_behavior_test_none_multi.B = class B extends if_null_behavior_test_non
e_multi.A { |
| 22 new(v) { |
| 23 this.b = v; |
| 24 super.new(v); |
| 25 } |
| 26 }; |
| 27 dart.setSignature(if_null_behavior_test_none_multi.B, { |
| 28 constructors: () => ({new: dart.definiteFunctionType(if_null_behavior_test_n
one_multi.B, [core.String])}) |
| 29 }); |
| 30 if_null_behavior_test_none_multi.C = class C extends if_null_behavior_test_non
e_multi.A { |
| 31 new(v) { |
| 32 this.c = v; |
| 33 super.new(v); |
| 34 } |
| 35 }; |
| 36 dart.setSignature(if_null_behavior_test_none_multi.C, { |
| 37 constructors: () => ({new: dart.definiteFunctionType(if_null_behavior_test_n
one_multi.C, [core.String])}) |
| 38 }); |
| 39 if_null_behavior_test_none_multi.nullB = function() { |
| 40 return null; |
| 41 }; |
| 42 dart.fn(if_null_behavior_test_none_multi.nullB, VoidToB()); |
| 43 if_null_behavior_test_none_multi.nullC = function() { |
| 44 return null; |
| 45 }; |
| 46 dart.fn(if_null_behavior_test_none_multi.nullC, VoidToC()); |
| 47 if_null_behavior_test_none_multi.noMethod = function(e) { |
| 48 return core.NoSuchMethodError.is(e); |
| 49 }; |
| 50 dart.fn(if_null_behavior_test_none_multi.noMethod, dynamicTodynamic()); |
| 51 if_null_behavior_test_none_multi.main = function() { |
| 52 let _ = (() => { |
| 53 let l = null; |
| 54 return l != null ? l : null; |
| 55 })(); |
| 56 }; |
| 57 dart.fn(if_null_behavior_test_none_multi.main, VoidTodynamic()); |
| 58 // Exports: |
| 59 exports.if_null_behavior_test_none_multi = if_null_behavior_test_none_multi; |
| 60 }); |
OLD | NEW |