36641368bb
This changes ast-to-text to mark legacy libraries instead of non-nullable-by-default libraries. TEST=existing Change-Id: Ib01147e4ef48c2c5b2ffc6b23547998344dfdf2e Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/307121 Commit-Queue: Johnni Winther <johnniwinther@google.com> Reviewed-by: Chloe Stefantsova <cstefantsova@google.com> Reviewed-by: Alexander Markov <alexmarkov@google.com>
34 lines
1.0 KiB
Plaintext
34 lines
1.0 KiB
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 /* futureValueType= core::String */ {
|
|
return "foo";
|
|
}
|
|
static method asyncString2() → asy::Future<core::String> async /* futureValueType= core::String */ {
|
|
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 /* futureValueType= dynamic */ {
|
|
core::String str = await self::asyncString();
|
|
}
|