Index: test/codegen/expect/language/async_await_syntax_test_b05a_multi.js |
diff --git a/test/codegen/expect/language/async_await_syntax_test_b05a_multi.js b/test/codegen/expect/language/async_await_syntax_test_b05a_multi.js |
new file mode 100644 |
index 0000000000000000000000000000000000000000..8ce423d978c0d3cf59335d5e967ca7cfb349ce67 |
--- /dev/null |
+++ b/test/codegen/expect/language/async_await_syntax_test_b05a_multi.js |
@@ -0,0 +1,49 @@ |
+dart_library.library('language/async_await_syntax_test_b05a_multi', null, /* Imports */[ |
+ 'dart_sdk' |
+], function load__async_await_syntax_test_b05a_multi(exports, dart_sdk) { |
+ 'use strict'; |
+ const core = dart_sdk.core; |
+ const async = dart_sdk.async; |
+ const dart = dart_sdk.dart; |
+ const dartx = dart_sdk.dartx; |
+ const async_await_syntax_test_b05a_multi = Object.create(null); |
+ let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.definiteFunctionType(dart.dynamic, [])))(); |
+ let VoidTovoid = () => (VoidTovoid = dart.constFn(dart.definiteFunctionType(dart.void, [])))(); |
+ async_await_syntax_test_b05a_multi.yield = 0; |
+ async_await_syntax_test_b05a_multi.await = 0; |
+ dart.copyProperties(async_await_syntax_test_b05a_multi, { |
+ get st() { |
+ return async.Stream.fromIterable([]); |
+ } |
+ }); |
+ async_await_syntax_test_b05a_multi.B = class B extends core.Object {}; |
+ async_await_syntax_test_b05a_multi.C = class C extends async_await_syntax_test_b05a_multi.B { |
+ new() { |
+ } |
+ b05a() { |
+ return dart.async(function*() { |
+ yield 0; |
+ }, dart.dynamic); |
+ } |
+ }; |
+ dart.setSignature(async_await_syntax_test_b05a_multi.C, { |
+ constructors: () => ({new: dart.definiteFunctionType(async_await_syntax_test_b05a_multi.C, [])}), |
+ methods: () => ({b05a: dart.definiteFunctionType(dart.dynamic, [])}) |
+ }); |
+ async_await_syntax_test_b05a_multi.method1 = function() { |
+ }; |
+ dart.fn(async_await_syntax_test_b05a_multi.method1, VoidTodynamic()); |
+ async_await_syntax_test_b05a_multi.method2 = function() { |
+ }; |
+ dart.fn(async_await_syntax_test_b05a_multi.method2, VoidTodynamic()); |
+ async_await_syntax_test_b05a_multi.main = function() { |
+ let a = null; |
+ let c = new async_await_syntax_test_b05a_multi.C(); |
+ c.b05a(); |
+ async_await_syntax_test_b05a_multi.method1(); |
+ async_await_syntax_test_b05a_multi.method2(); |
+ }; |
+ dart.fn(async_await_syntax_test_b05a_multi.main, VoidTovoid()); |
+ // Exports: |
+ exports.async_await_syntax_test_b05a_multi = async_await_syntax_test_b05a_multi; |
+}); |