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

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

Issue 2809523002: Issue 29288. Resynthesize Import/Export/PartElement for every directive. (Closed)
Patch Set: Created 3 years, 8 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_ast_test.dart
diff --git a/pkg/analyzer/test/src/summary/resynthesize_ast_test.dart b/pkg/analyzer/test/src/summary/resynthesize_ast_test.dart
index 2cb5cc0d8ffd4b23129bb1c95837d581d2a10a64..94691e47093fac9ac41ef5e92248713b96cad5b8 100644
--- a/pkg/analyzer/test/src/summary/resynthesize_ast_test.dart
+++ b/pkg/analyzer/test/src/summary/resynthesize_ast_test.dart
@@ -247,6 +247,8 @@ abstract class _ResynthesizeAstTest extends ResynthesizeTest
with _AstResynthesizeTestMixin {
bool get isStrongMode;
+ bool get shouldCompareLibraryElements;
+
@override
LibraryElementImpl checkLibrary(String text,
{bool allowErrors: false, bool dumpSummaries: false}) {
@@ -259,7 +261,9 @@ abstract class _ResynthesizeAstTest extends ResynthesizeTest
fail('Analysis errors: $errors');
}
}
- checkLibraryElements(original, resynthesized);
+ if (shouldCompareLibraryElements) {
+ checkLibraryElements(original, resynthesized);
+ }
return resynthesized;
}

Powered by Google App Engine
This is Rietveld 408576698