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

Unified Diff: utils/apidoc/apidoc.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 | « tools/testing/dart/test_runner.dart ('k') | utils/apidoc/mdn/extract.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: utils/apidoc/apidoc.dart
diff --git a/utils/apidoc/apidoc.dart b/utils/apidoc/apidoc.dart
index 019812ac988fc5bea4803d745b18cb4860a7be1d..0fd572c8bf46560b2c988b5225363265f76087f8 100644
--- a/utils/apidoc/apidoc.dart
+++ b/utils/apidoc/apidoc.dart
@@ -14,8 +14,9 @@
*/
library apidoc;
+import 'dart:async';
import 'dart:io';
-import 'dart:json';
+import 'dart:json' as json;
import 'html_diff.dart';
// TODO(rnystrom): Use "package:" URL (#4968).
import '../../sdk/lib/_internal/compiler/implementation/mirrors/mirrors.dart';
@@ -87,7 +88,7 @@ void main() {
print('Parsing MDN data...');
final mdnFile = new File.fromPath(doc.scriptDir.append('mdn/database.json'));
- final mdn = JSON.parse(mdnFile.readAsStringSync());
+ final mdn = json.parse(mdnFile.readAsStringSync());
print('Cross-referencing dart:html...');
HtmlDiff.initialize(libPath);
@@ -484,7 +485,10 @@ class Apidoc extends doc.Dartdoc {
// Use the corresponding DOM type when searching MDN.
// TODO(rnystrom): Shame there isn't a simpler way to get the one item
// out of a singleton Set.
- typeString = domTypes.iterator().next();
+ // TODO(floitsch): switch to domTypes.first, once that's implemented.
+ var iter = domTypes.iterator;
+ iter.moveNext();
+ typeString = iter.current;
} else {
// Not a DOM type.
return null;
@@ -518,7 +522,10 @@ class Apidoc extends doc.Dartdoc {
// Use the corresponding DOM member when searching MDN.
// TODO(rnystrom): Shame there isn't a simpler way to get the one item
// out of a singleton Set.
- memberString = domMembers.iterator().next();
+ // TODO(floitsch): switch to domTypes.first, once that's implemented.
+ var iter = domMembers.iterator;
+ iter.moveNext();
+ memberString = iter.current;
} else {
// Not a DOM type.
return null;
« no previous file with comments | « tools/testing/dart/test_runner.dart ('k') | utils/apidoc/mdn/extract.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698