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

Unified Diff: sdk/lib/_internal/dartdoc/lib/dartdoc.dart

Issue 13878002: Fix the dartdoc build. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 8 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: sdk/lib/_internal/dartdoc/lib/dartdoc.dart
diff --git a/sdk/lib/_internal/dartdoc/lib/dartdoc.dart b/sdk/lib/_internal/dartdoc/lib/dartdoc.dart
index 42c9dddabbc7501020752913733033d90f9f33b0..f42aa03ff9c22be869fd04257a78e60de6b33e0e 100644
--- a/sdk/lib/_internal/dartdoc/lib/dartdoc.dart
+++ b/sdk/lib/_internal/dartdoc/lib/dartdoc.dart
@@ -424,12 +424,16 @@ class Dartdoc {
return content;
}
- Future documentLibraries(List<String> libraryList, Path libPath,
+ Future documentLibraries(List<Uri> libraryList, Path libPath,
String packageRoot) {
_packageRoot = packageRoot;
_exports = new ExportMap.parse(libraryList, packageRoot);
- var librariesToAnalyze = new List.from(_exports.allExportedFiles);
- librariesToAnalyze.addAll(libraryList);
+ var librariesToAnalyze = _exports.allExportedFiles.map(pathToFileUri);
+ librariesToAnalyze.addAll(libraryList.map((uri) {
+ if (uri.scheme == 'file') return fileUriToPath(uri);
+ // dart2js takes "dart:*" URIs as Path objects for some reason.
+ return uri.toString();
+ });
// TODO(amouravski): make all of these print statements into logging
// statements.

Powered by Google App Engine
This is Rietveld 408576698