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

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

Issue 2990783002: Serialize typedef parameters (including function typed ones) to Kernel and use it to resynthesize t… (Closed)
Patch Set: Test for named parameters. 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 0449014e120afccec87512bd4410c98a1be362dd..746fb82833a000a53e8f9b0d020d817450a43623 100644
--- a/pkg/analyzer/test/src/summary/resynthesize_common.dart
+++ b/pkg/analyzer/test/src/summary/resynthesize_common.dart
@@ -9435,6 +9435,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/dart/element/element.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