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

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

Issue 2987863002: Resynthesize factoring constructor redirects from Kernel. (Closed)
Patch Set: Created 3 years, 5 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
Index: pkg/analyzer/test/src/summary/resynthesize_common.dart
diff --git a/pkg/analyzer/test/src/summary/resynthesize_common.dart b/pkg/analyzer/test/src/summary/resynthesize_common.dart
index 7eff2b72c4aa8c377a546fedc791868a0783e426..ff6ecc6135192f73dc9c00abeab7d0c140c05335 100644
--- a/pkg/analyzer/test/src/summary/resynthesize_common.dart
+++ b/pkg/analyzer/test/src/summary/resynthesize_common.dart
@@ -5031,24 +5031,7 @@ class D {
D() : x = new C();
}
''');
- if (isSharedFrontEnd) {
- // The shared front-end keeps initializers for cycled constructors.
- checkElementText(library, r'''
-class C {
- final dynamic x;
- C() :
- x/*location: test.dart;C;x*/ = new
- D/*location: test.dart;D*/();
-}
-class D {
- final dynamic x;
- D() :
- x/*location: test.dart;D;x*/ = new
- C/*location: test.dart;C*/();
-}
-''');
- } else {
- checkElementText(library, r'''
+ checkElementText(library, r'''
class C {
final dynamic x;
C();
@@ -5058,7 +5041,6 @@ class D {
D();
}
''');
- }
}
test_defaultValue_refersToGenericClass_constructor() async {
« no previous file with comments | « pkg/analyzer/lib/src/kernel/resynthesize.dart ('k') | pkg/analyzer/test/src/summary/resynthesize_kernel_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698