Index: pkg/analyzer/test/generated/all_the_rest_test.dart |
diff --git a/pkg/analyzer/test/generated/all_the_rest_test.dart b/pkg/analyzer/test/generated/all_the_rest_test.dart |
index c4a47ca220bc487a37d30fd9e45132b192785e64..3594bfbb5972891ffcaefa716b592d85b633a6fc 100644 |
--- a/pkg/analyzer/test/generated/all_the_rest_test.dart |
+++ b/pkg/analyzer/test/generated/all_the_rest_test.dart |
@@ -3962,6 +3962,42 @@ void f() { |
_assertNthStatementExits(source, 0); |
} |
+ void test_yieldStatement_plain() { |
+ Source source = addSource(r''' |
+void f() sync* { |
+ yield 1; |
+} |
+'''); |
+ _assertNthStatementDoesNotExit(source, 0); |
+ } |
+ |
+ void test_yieldStatement_throw() { |
+ Source source = addSource(r''' |
+void f() sync* { |
+ yield throw ''; |
+} |
+'''); |
+ _assertNthStatementExits(source, 0); |
+ } |
+ |
+ void test_yieldStatement_star_plain() { |
+ Source source = addSource(r''' |
+void f() sync* { |
+ yield* 1; |
+} |
+'''); |
+ _assertNthStatementDoesNotExit(source, 0); |
+ } |
+ |
+ void test_yieldStatement_star_throw() { |
+ Source source = addSource(r''' |
+void f() sync* { |
+ yield* throw ''; |
+} |
+'''); |
+ _assertNthStatementExits(source, 0); |
+ } |
+ |
void _assertHasReturn(bool expectedResult, Source source, int n) { |
LibraryElement element = resolve2(source); |
CompilationUnit unit = resolveCompilationUnit(source, element); |