blob: 7e44161322e702125cc29b241077fb78f47aa1fd [file] [log] [blame]
40 columns |
>>> Break.
while (true) {
break ;
}
<<<
while (true) {
break;
}
>>> Break to label.
while (true) {
break someLabel ;
}
<<<
while (true) {
break someLabel;
}
>>> Continue.
while (true) {
continue ;
}
<<<
while (true) {
continue;
}
>>> Continue to label.
while (true) {
continue someLabel ;
}
<<<
while (true) {
continue someLabel;
}
>>> Yield.
Stream<String> i(String n) async* {
yield i ;
}
<<<
Stream<String> i(String n) async* {
yield i;
}
>>> Yield*.
Stream<int> i(int n) async* {
yield * i ( n - 1 ) ;
}
<<<
Stream<int> i(int n) async* {
yield* i(n - 1);
}
>>> Await.
foo() async {
await i ( 1 + 2 ) ;
}
<<<
foo() async {
await i(1 + 2);
}