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

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

Issue 2983413002: Resynthesize constructor initializers 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/element_text.dart
diff --git a/pkg/analyzer/test/src/summary/element_text.dart b/pkg/analyzer/test/src/summary/element_text.dart
index b6bbae25abeb2f9ad516726d4dbcec40cc4e1b89..c7897de4f32758a5f1824bb48b24292a6075658e 100644
--- a/pkg/analyzer/test/src/summary/element_text.dart
+++ b/pkg/analyzer/test/src/summary/element_text.dart
@@ -361,6 +361,17 @@ class _ElementWriter {
writeExpression(e.key);
buffer.write(': ');
writeExpression(e.value);
+ } else if (e is MethodInvocation) {
+ if (e.target != null) {
+ writeExpression(e.target);
+ buffer.write(e.operator);
+ }
+ writeExpression(e.methodName);
+ if (e.typeArguments != null) {
+ writeList('<', '>', e.typeArguments.arguments, ', ', writeExpression);
+ }
+ writeList('(', ')', e.argumentList.arguments, ', ', writeExpression,
+ includeEmpty: true);
} else if (e is NamedExpression) {
writeExpression(e.name);
buffer.write(e.expression);

Powered by Google App Engine
This is Rietveld 408576698