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

Unified Diff: tools/html_json_doc/lib/html_to_json.dart

Issue 11865005: Remove Futures class, move methods to Future. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 11 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 | « tests/standalone/io/http_session_test.dart ('k') | tools/testing/dart/multitest.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/html_json_doc/lib/html_to_json.dart
diff --git a/tools/html_json_doc/lib/html_to_json.dart b/tools/html_json_doc/lib/html_to_json.dart
index 4abb3529e122d0313b4d6aed66cc12a86b311976..1e83e8b75783bcedb72db03869f7241b7c4e622c 100644
--- a/tools/html_json_doc/lib/html_to_json.dart
+++ b/tools/html_json_doc/lib/html_to_json.dart
@@ -37,7 +37,7 @@ bool _anyErrors = false;
*/
Future<bool> convert(Path htmlPath, Path jsonPath) {
var completer = new Completer();
-
+
// TODO(amouravski): make this transform once I know what I want this file to
// return.
_convertFiles(htmlPath).then((convertedJson) {
@@ -105,7 +105,7 @@ Future<Object> _convertFiles(Path htmlPath) {
// Combine all JSON objects
lister.onDone = (_) {
- Futures.wait(fileFutures).then((jsonList) {
+ Future.wait(fileFutures).then((jsonList) {
var convertedJson = {};
jsonList.forEach((json) {
final k = json.keys[0];
@@ -270,7 +270,7 @@ bool _listsEqual(List list1, List list2) {
* Print JSON in a much nicer format.
*
* For example:
- *
+ *
* {"foo":["bar","baz"],"boo":{"far:"faz"}}
*
* becomes:
@@ -293,7 +293,7 @@ String prettyPrintJson(Object json, [String indentation = '']) {
if (json is List) {
var recursiveOutput =
- Strings.join(json.map((e) =>
+ Strings.join(json.map((e) =>
prettyPrintJson(e, '$indentation ')), ',\n');
output = '$indentation[\n'
'$recursiveOutput'
« no previous file with comments | « tests/standalone/io/http_session_test.dart ('k') | tools/testing/dart/multitest.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698