Files
sdk/pkg/front_end/testcases/async_function.dart.strong.expect
T
Jens Johansen 1bad9304a0 Print user-imports and parts when printing ast to text
Also remove some duplicated code so libraries are mostly only printed
in one place.

Change-Id: I7cb86bff1938f05631d7eb3432deda2c9939f402
Reviewed-on: https://dart-review.googlesource.com/c/90226
Reviewed-by: Peter von der Ahé <ahe@google.com>
Commit-Queue: Jens Johansen <jensj@google.com>
2019-01-21 12:10:16 +00:00

34 lines
944 B
Plaintext

library;
import self as self;
import "dart:async" as asy;
import "dart:core" as core;
import "dart:async";
static field core::List<core::String> stringList = <core::String>["bar"];
static method asyncString() → asy::Future<core::String> async {
return "foo";
}
static method asyncString2() → asy::Future<core::String> async {
return self::asyncString();
}
static method syncStarString() → core::Iterable<core::String> sync* {
yield "foo";
yield* self::syncStarString2();
yield* self::stringList;
}
static method syncStarString2() → core::Iterable<core::String> sync* {
yield "foo";
}
static method asyncStarString() → asy::Stream<core::String> async* {
yield "foo";
yield* self::asyncStarString2();
yield await self::asyncString();
}
static method asyncStarString2() → asy::Stream<core::String> async* {
yield "bar";
}
static method main() → dynamic async {
core::String str = await self::asyncString();
}