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

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

Issue 2978093002: Resynthesize top-level functions 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 dce0b95f0f287498bb94389124052c9b344d4936..a9c5f34031221fe46225089b48757b5876eba32c 100644
--- a/pkg/analyzer/test/src/summary/resynthesize_common.dart
+++ b/pkg/analyzer/test/src/summary/resynthesize_common.dart
@@ -7048,10 +7048,16 @@ Stream<dynamic> f() async* {}
f() {}''');
if (isStrongMode) {
checkElementText(library, r'''
+/**
+ * Docs
+ */
dynamic f() {}
''');
} else {
checkElementText(library, r'''
+/**
+ * Docs
+ */
dynamic f() {}
''');
}
@@ -7059,15 +7065,9 @@ dynamic f() {}
test_function_entry_point() async {
var library = await checkLibrary('main() {}');
- if (isStrongMode) {
- checkElementText(library, r'''
-dynamic main() {}
-''');
- } else {
- checkElementText(library, r'''
+ checkElementText(library, r'''
dynamic main() {}
''');
- }
}
test_function_entry_point_in_export() async {
« no previous file with comments | « pkg/analyzer/test/src/summary/element_text.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