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

Unified Diff: lib/json_info_codec.dart

Issue 2320773002: include output unit in constant info (Closed)
Patch Set: Created 4 years, 3 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 | pubspec.yaml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/json_info_codec.dart
diff --git a/lib/json_info_codec.dart b/lib/json_info_codec.dart
index 5a79a278fe1d4081d2c3d59cfc152ebe6a8c52ac..8b59aa20b433174e8b05c4fd25f417aacf16aa3b 100644
--- a/lib/json_info_codec.dart
+++ b/lib/json_info_codec.dart
@@ -131,7 +131,8 @@ class JsonToAllInfoConverter extends Converter<Map<String, dynamic>, AllInfo> {
ConstantInfo result = parseId(json['id']);
return result
..code = json['code']
- ..size = json['size'];
+ ..size = json['size']
+ ..outputUnit = parseId(json['outputUnit']);
}
TypedefInfo parseTypedef(Map json) {
@@ -260,6 +261,7 @@ class AllInfoToJsonConverter extends Converter<AllInfo, Map>
map[info.serializedId] =
info.uses.map((u) => _visitDependencyInfo(u)).toList();
}
+
allInfo.functions.forEach(helper);
allInfo.fields.forEach(helper);
return map;
« no previous file with comments | « no previous file | pubspec.yaml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698