Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(740)

Unified Diff: pkg/analyzer/test/generated/incremental_resolver_test.dart

Issue 896573003: Match body modifiers in incremental resolver. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/analyzer/lib/src/generated/incremental_resolver.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/test/generated/incremental_resolver_test.dart
diff --git a/pkg/analyzer/test/generated/incremental_resolver_test.dart b/pkg/analyzer/test/generated/incremental_resolver_test.dart
index 2c8f00a89f8da8b7a4e5e58622a90d670360a4f2..90106a9f23e9d50753acaadf9726bb9ffc9c6579 100644
--- a/pkg/analyzer/test/generated/incremental_resolver_test.dart
+++ b/pkg/analyzer/test/generated/incremental_resolver_test.dart
@@ -620,6 +620,38 @@ class T {
''');
}
+ void test_false_function_async_add() {
+ _assertDoesNotMatch(r'''
+main() {}
+''', r'''
+main() async {}
+''');
+ }
+
+ void test_false_function_async_remove() {
+ _assertDoesNotMatch(r'''
+main() async {}
+''', r'''
+main() {}
+''');
+ }
+
+ void test_false_function_generator_add() {
+ _assertDoesNotMatch(r'''
+main() async {}
+''', r'''
+main() async* {}
+''');
+ }
+
+ void test_false_function_generator_remove() {
+ _assertDoesNotMatch(r'''
+main() async* {}
+''', r'''
+main() async {}
+''');
+ }
+
void test_false_functionTypeAlias_list_add() {
_assertDoesNotMatch(r'''
typedef A(int pa);
@@ -925,6 +957,54 @@ class A {
''');
}
+ void test_false_method_async_add() {
+ _assertDoesNotMatchOK(r'''
+class A {
+ m() {}
+}
+''', r'''
+class A {
+ m() async {}
+}
+''');
+ }
+
+ void test_false_method_async_remove() {
+ _assertDoesNotMatchOK(r'''
+class A {
+ m() async {}
+}
+''', r'''
+class A {
+ m() {}
+}
+''');
+ }
+
+ void test_false_method_generator_add() {
+ _assertDoesNotMatchOK(r'''
+class A {
+ m() async {}
+}
+''', r'''
+class A {
+ m() async* {}
+}
+''');
+ }
+
+ void test_false_method_generator_remove() {
+ _assertDoesNotMatchOK(r'''
+class A {
+ m() async* {}
+}
+''', r'''
+class A {
+ m() async {}
+}
+''');
+ }
+
void test_false_method_list_add() {
_assertDoesNotMatchOK(r'''
class A {
@@ -1775,6 +1855,18 @@ class A {
''');
}
+ void test_true_method_async() {
+ _assertMatches(r'''
+class A {
+ m() async {}
+}
+''', r'''
+class A {
+ m() async {}
+}
+''');
+ }
+
void test_true_method_list_reorder() {
_assertMatches(r'''
class A {
« no previous file with comments | « pkg/analyzer/lib/src/generated/incremental_resolver.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698