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

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: make accept dynamic 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
Index: bin/inference/client.dart
diff --git a/bin/inference/client.dart b/bin/inference/client.dart
index 0674653e5be1559f28dada003f45b30fc76fbb85..9a1b141d560d9fad6e34a3b04e1a73d59e3ed93f 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 JsonInfoCodec()
+ .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') | lib/info.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698