| OLD | NEW |
| (Empty) |
| 1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file | |
| 2 // for details. All rights reserved. Use of this source code is governed by a | |
| 3 // BSD-style license that can be found in the LICENSE file. | |
| 4 import 'dart:async'; | |
| 5 | |
| 6 Future<String> asyncString() async { | |
| 7 return "foo"; | |
| 8 } | |
| 9 | |
| 10 Future<String> asyncString2() async { | |
| 11 return asyncString(); | |
| 12 } | |
| 13 | |
| 14 Iterable<String> syncStarString() sync* { | |
| 15 yield "foo"; | |
| 16 yield* syncStarString2(); | |
| 17 yield* stringList; | |
| 18 } | |
| 19 | |
| 20 Iterable<String> syncStarString2() sync* { | |
| 21 yield "foo"; | |
| 22 } | |
| 23 | |
| 24 Stream<String> asyncStarString() async* { | |
| 25 yield "foo"; | |
| 26 yield* asyncStarString2(); | |
| 27 yield await asyncString(); | |
| 28 } | |
| 29 | |
| 30 Stream<String> asyncStarString2() async* { | |
| 31 yield "bar"; | |
| 32 } | |
| 33 | |
| 34 List<String> stringList = ["bar"]; | |
| 35 | |
| 36 main() async { | |
| 37 String str = await asyncString(); | |
| 38 } | |
| OLD | NEW |