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

Unified Diff: bin/inference/client.dart

Issue 1411523003: add a JsonInfoCodec class (Closed) Base URL: git@github.com:dart-lang/dart2js_info.git@master
Patch Set: Created 5 years, 2 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 | « bin/function_size_analysis.dart ('k') | bin/inference/print_summary.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: bin/inference/client.dart
diff --git a/bin/inference/client.dart b/bin/inference/client.dart
index 0674653e5be1559f28dada003f45b30fc76fbb85..e5b05d79728629405d104ea7eacc18aaf0542ba0 100644
--- a/bin/inference/client.dart
+++ b/bin/inference/client.dart
@@ -13,8 +13,8 @@ import 'package:charcode/charcode.dart';
AllInfo data;
main() async {
- data =
- new AllInfo.fromJson(JSON.decode(await HttpRequest.getString('/data')));
+ data = new AllInfoJsonCodec()
+ .decode(JSON.decode(await HttpRequest.getString('/data')));
routeByHash();
window.onHashChange.listen((_) => routeByHash());
« no previous file with comments | « bin/function_size_analysis.dart ('k') | bin/inference/print_summary.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698