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

Unified Diff: pkg/analyzer_experimental/lib/options.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
Index: pkg/analyzer_experimental/lib/options.dart
diff --git a/pkg/analyzer_experimental/lib/options.dart b/pkg/analyzer_experimental/lib/options.dart
index cb63502ae88014ada7ddb0630053142aa985a8e0..dd841f0a3c43f3f376871a119302bc4a87158cf6 100644
--- a/pkg/analyzer_experimental/lib/options.dart
+++ b/pkg/analyzer_experimental/lib/options.dart
@@ -153,7 +153,7 @@ class CommandLineOptions {
static String _getVersion() {
try {
- Path path = new Path(new Options().script);
+ Path path = new Path(Platform.script);
Path versionPath = path.directoryPath.append('..').append('version');
File versionFile = new File.fromPath(versionPath);
return versionFile.readAsStringSync().trim();

Powered by Google App Engine
This is Rietveld 408576698