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

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

Issue 16848002: Add toUri and fromUri functions to pathos. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Preserve trailing separators. Created 7 years, 6 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 | « sdk/lib/_internal/dartdoc/bin/dartdoc.dart ('k') | sdk/lib/_internal/dartdoc/lib/src/dartdoc/utils.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 7d5eba0b803d72fdd538190ea9db7654bfed890e..618b4e501b89d9bdc29c57371b1bc2368cda4196 100644
--- a/sdk/lib/_internal/dartdoc/lib/dartdoc.dart
+++ b/sdk/lib/_internal/dartdoc/lib/dartdoc.dart
@@ -434,7 +434,7 @@ class Dartdoc {
_exports = new ExportMap.parse(libraryList, packageRoot);
var librariesToAnalyze = _exports.allExportedFiles.toList();
librariesToAnalyze.addAll(libraryList.map((uri) {
- if (uri.scheme == 'file') return fileUriToPath(uri);
+ if (uri.scheme == 'file') return pathos.fromUri(uri);
// dart2js takes "dart:*" URIs as Path objects for some reason.
return uri.toString();
}));
@@ -799,9 +799,8 @@ class Dartdoc {
'''library client;
import 'dart:html';
import 'dart:json';
- import r'${pathToFileUri(
- pathos.join(clientDir, 'client-shared.dart'))}';
- import r'${pathToFileUri(pathos.join(clientDir, 'dropdown.dart'))}';
+ import r'${pathos.toUri(pathos.join(clientDir, 'client-shared.dart'))}';
+ import r'${pathos.toUri(pathos.join(clientDir, 'dropdown.dart'))}';
main() {
setup();
« no previous file with comments | « sdk/lib/_internal/dartdoc/bin/dartdoc.dart ('k') | sdk/lib/_internal/dartdoc/lib/src/dartdoc/utils.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698