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

Unified Diff: pkg/analyzer/test/src/summary/resynthesize_test.dart

Issue 1625633002: Fix resynthesis of abstract classes and methods. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 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/summary/resynthesize.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/src/summary/resynthesize_test.dart
diff --git a/pkg/analyzer/test/src/summary/resynthesize_test.dart b/pkg/analyzer/test/src/summary/resynthesize_test.dart
index 8e9ac31af7f4992b14fc209e2f6856e99d2c6d54..6b508511e6b3ab0969db7596c5d1fd040b9b169d 100644
--- a/pkg/analyzer/test/src/summary/resynthesize_test.dart
+++ b/pkg/analyzer/test/src/summary/resynthesize_test.dart
@@ -581,10 +581,18 @@ class ResynthTest extends ResolverTestCase {
return resynthesized;
}
+ test_class_abstract() {
+ checkLibrary('abstract class C {}');
+ }
+
test_class_alias() {
checkLibrary('class C = D with E, F; class D {} class E {} class F {}');
}
+ test_class_alias_abstract() {
+ checkLibrary('abstract class C = D with E; class D {} class E {}');
+ }
+
test_class_alias_documented() {
checkLibrary('''
// Extra comment so doc comment offset != 0
@@ -781,6 +789,10 @@ class E {}''');
checkLibrary('class C { int i; int j; }');
}
+ test_class_getter_abstract() {
+ checkLibrary('abstract class C { int get x; }');
+ }
+
test_class_getter_external() {
checkLibrary('class C { external int get x; }');
}
@@ -809,6 +821,10 @@ class E {}''');
checkLibrary('class C implements D, E {} class D {} class E {}');
}
+ test_class_method_abstract() {
+ checkLibrary('abstract class C { f(); }');
+ }
+
test_class_method_external() {
checkLibrary('class C { external f(); }');
}
@@ -829,6 +845,10 @@ class E {}''');
checkLibrary('class C extends Object with D, E {} class D {} class E {}');
}
+ test_class_setter_abstract() {
+ checkLibrary('abstract class C { void set x(int value); }');
+ }
+
test_class_setter_external() {
checkLibrary('class C { external void set x(int value); }');
}
« no previous file with comments | « pkg/analyzer/lib/src/summary/resynthesize.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698