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

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

Issue 11878015: Default constructor for dart:io Path now handles native Windows paths. Path() now does the same as… (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Don't change tools/version.dart until the binaries are updated. 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 | « sdk/lib/_internal/dartdoc/bin/dartdoc.dart ('k') | sdk/lib/_internal/dartdoc/test/dartdoc_test.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 772e9d0c64a3727a768461f6c3d4cf7fa1d8b1b7..9b51ff461e9725ee59170e4b9aeb962b135caf5a 100644
--- a/sdk/lib/_internal/dartdoc/lib/dartdoc.dart
+++ b/sdk/lib/_internal/dartdoc/lib/dartdoc.dart
@@ -70,7 +70,7 @@ const API_LOCATION = 'http://api.dartlang.org/';
// TODO(johnniwinther): Convert to final (lazily initialized) variables when
// the feature is supported.
Path get scriptDir =>
- new Path.fromNative(new Options().script).directoryPath;
+ new Path(new Options().script).directoryPath;
/**
* Deletes and recreates the output directory at [path] if it exists.
@@ -113,7 +113,7 @@ Future copyDirectory(Path from, Path to) {
final lister = fromDir.list(recursive: false);
lister.onFile = (String path) {
- final name = new Path.fromNative(path).filename;
+ final name = new Path(path).filename;
// TODO(rnystrom): Hackish. Ignore 'hidden' files like .DS_Store.
if (name.startsWith('.')) return;
@@ -1848,7 +1848,7 @@ class Dartdoc {
// 2) By ensuring that [filePath] does not have double slashes before
// calling [relativeTo], or better, by making [relativeTo] handle double
// slashes correctly.
- Path filePath = new Path.fromNative(filename).canonicalize();
+ Path filePath = new Path(filename).canonicalize();
Path relativeFilePath = filePath.relativeTo(outputDir);
write("$relativeFilePath\n");
};
« no previous file with comments | « sdk/lib/_internal/dartdoc/bin/dartdoc.dart ('k') | sdk/lib/_internal/dartdoc/test/dartdoc_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698