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

Unified Diff: sdk/lib/_internal/dartdoc/bin/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 | « pkg/stack_trace/test/trace_test.dart ('k') | sdk/lib/_internal/dartdoc/lib/dartdoc.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/_internal/dartdoc/bin/dartdoc.dart
diff --git a/sdk/lib/_internal/dartdoc/bin/dartdoc.dart b/sdk/lib/_internal/dartdoc/bin/dartdoc.dart
index c0fdf6e5b7c3d1524087f396bd32410f532b8c1c..cc36155c00bfc5e3b3caa47b6ada6ea2f9dcb8a6 100644
--- a/sdk/lib/_internal/dartdoc/bin/dartdoc.dart
+++ b/sdk/lib/_internal/dartdoc/bin/dartdoc.dart
@@ -214,7 +214,7 @@ mainWithOptions(Options options) {
var entrypointRoot;
for (final entrypoint in option.rest) {
var uri = Uri.parse(entrypoint);
- if (uri.scheme == '') uri = pathToFileUri(entrypoint);
+ if (uri.scheme == '') uri = path.toUri(entrypoint);
entrypoints.add(uri);
if (uri.scheme != 'file') continue;
@@ -274,7 +274,7 @@ String _getPackageRoot(List<Uri> entrypoints) {
orElse: () => null);
if (fileEntrypoint == null) return;
- var script = path.normalize(path.absolute(fileUriToPath(fileEntrypoint)));
+ var script = path.normalize(path.absolute(path.fromUri(fileEntrypoint)));
var dir = path.join(path.dirname(script), 'packages/');
if (new Directory(dir).existsSync()) return dir;
« no previous file with comments | « pkg/stack_trace/test/trace_test.dart ('k') | sdk/lib/_internal/dartdoc/lib/dartdoc.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698