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

Unified Diff: utils/apidoc/mdn/prettyPrint.dart

Issue 11783009: Big merge from experimental to bleeding edge. (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 | « utils/apidoc/mdn/postProcess.dart ('k') | utils/apidoc/mdn/util.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: utils/apidoc/mdn/prettyPrint.dart
diff --git a/utils/apidoc/mdn/prettyPrint.dart b/utils/apidoc/mdn/prettyPrint.dart
index d0a413cf849741e6939d32dca256f988c3f09e01..6d4c323d853eb210ac58bde0fcde9db537ba31b4 100644
--- a/utils/apidoc/mdn/prettyPrint.dart
+++ b/utils/apidoc/mdn/prettyPrint.dart
@@ -5,14 +5,14 @@
library prettyPrint;
import 'dart:io';
-import 'dart:json';
+import 'dart:json' as json;
import 'util.dart';
String orEmpty(String str) {
return str == null ? "" : str;
}
-List<String> sortStringCollection(Collection<String> collection) {
+List<String> sortStringCollection(Iterable<String> collection) {
final out = <String>[];
out.addAll(collection);
out.sort((String a, String b) => a.compareTo(b));
@@ -51,7 +51,7 @@ int addMissing(StringBuffer sb, String type, Map members) {
void main() {
// Database of code documentation.
- final Map<String, Map> database = JSON.parse(
+ final Map<String, Map> database = json.parse(
new File('output/database.filtered.json').readAsStringSync());
// Types we have documentation for.
« no previous file with comments | « utils/apidoc/mdn/postProcess.dart ('k') | utils/apidoc/mdn/util.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698