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

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

Issue 53313007: Change dart:io Platform.script to return a URI. Change all uses of Platform.script to work with th… (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix dom.py docs Created 7 years, 2 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 3d3f3c84724b1807e19caf1e6152790d83186000..3b4fe10080dbbaaa8dc09952dbc6d4a84b5c190d 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.
-String get scriptDir => path.dirname(Platform.script);
+String get scriptDir => path.dirname(Platform.script.toFilePath());
/**
* Deletes and recreates the output directory at [path] if it exists.
@@ -776,7 +776,7 @@ class Dartdoc {
/// Whether dartdoc is running from within the Dart SDK or the
/// Dart source repository.
bool get runningFromSdk =>
- path.extension(Platform.script) == '.snapshot';
+ path.extension(Platform.script.toFilePath()) == '.snapshot';
/// Gets the path to the root directory of the SDK.
String get sdkDir =>

Powered by Google App Engine
This is Rietveld 408576698