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

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

Issue 17406010: Move getters from Options to Platform (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fixed Dart_GetType 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 | « runtime/bin/platform_patch.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 618b4e501b89d9bdc29c57371b1bc2368cda4196..02748759b184659a1ffdc0ffaff37190aeb9138c 100644
--- a/sdk/lib/_internal/dartdoc/lib/dartdoc.dart
+++ b/sdk/lib/_internal/dartdoc/lib/dartdoc.dart
@@ -71,7 +71,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(new Options().script).directoryPath;
+ new Path(Platform.script).directoryPath;
/**
* Deletes and recreates the output directory at [path] if it exists.
@@ -771,11 +771,11 @@ class Dartdoc {
/// Whether dartdoc is running from within the Dart SDK or the
/// Dart source repository.
bool get runningFromSdk =>
- pathos.extension(new Options().script) == '.snapshot';
+ pathos.extension(Platform.script) == '.snapshot';
/// Gets the path to the root directory of the SDK.
String get sdkDir =>
- pathos.dirname(pathos.dirname(new Options().executable));
+ pathos.dirname(pathos.dirname(Platform.executable));
/// Gets the path to the dartdoc directory normalized for running in different
/// places.
« no previous file with comments | « runtime/bin/platform_patch.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