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

Unified Diff: pkg/analyzer/lib/src/summary/base.dart

Issue 1712023002: Generate useful toString() methods for summary classes. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 10 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
« no previous file with comments | « no previous file | pkg/analyzer/lib/src/summary/format.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/lib/src/summary/base.dart
diff --git a/pkg/analyzer/lib/src/summary/base.dart b/pkg/analyzer/lib/src/summary/base.dart
index c4a4cdb8a6aeac9b622bd2099f44e0842a69574a..1a1626ee9d65cee483e19f7c77efa4678d7e65c6 100644
--- a/pkg/analyzer/lib/src/summary/base.dart
+++ b/pkg/analyzer/lib/src/summary/base.dart
@@ -33,4 +33,15 @@ abstract class SummaryClass {
* Intended for testing and debugging only.
*/
Map<String, Object> toMap();
+
+ /**
+ * Translate the data in this class into a JSON map, whose keys are the names
+ * of fields and whose values are the data stored in those fields,
+ * recursively converted into JSON.
+ *
+ * Fields containing their default value are elided.
+ *
+ * Intended for testing and debugging only.
+ */
+ Map<String, Object> toJson();
}
« no previous file with comments | « no previous file | pkg/analyzer/lib/src/summary/format.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698