| 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");
|
| };
|
|
|