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

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

Issue 2992083002: Resynthesize typedefs 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 e91f4c1128c61c33e7bf400a1a6231efea580321..bd1c556a1ce8af1fd7f514c343471792ad62298c 100644
--- a/pkg/analyzer/test/src/summary/resynthesize_common.dart
+++ b/pkg/analyzer/test/src/summary/resynthesize_common.dart
@@ -9440,6 +9440,13 @@ typedef dynamic F(dynamic x, dynamic y);
''');
}
+ test_typedef_parameters_named() async {
+ var library = await checkLibrary('typedef F({y, z, x});');
+ checkElementText(library, r'''
+typedef dynamic F({dynamic y}, {dynamic z}, {dynamic x});
+''');
+ }
+
test_typedef_return_type() async {
var library = await checkLibrary('typedef int F();');
checkElementText(library, r'''
« 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