| Index: pkg/analyzer_experimental/lib/options.dart
|
| diff --git a/pkg/analyzer_experimental/lib/options.dart b/pkg/analyzer_experimental/lib/options.dart
|
| index 25a496c68386e4131b8d447e9cf0d72a87f4a2af..37c6c8dab11ebf118b1ab686732d1141a637d784 100644
|
| --- a/pkg/analyzer_experimental/lib/options.dart
|
| +++ b/pkg/analyzer_experimental/lib/options.dart
|
| @@ -154,8 +154,8 @@ class CommandLineOptions {
|
|
|
| static String _getVersion() {
|
| try {
|
| - Path versionPath = join(dirname(Platform.script), '..', 'version');;
|
| - File versionFile = new File.fromPath(versionPath);
|
| + String versionPath = join(dirname(Platform.script), '..', 'version');;
|
| + File versionFile = new File(versionPath);
|
| return versionFile.readAsStringSync().trim();
|
| } catch (_) {
|
| // This happens when the script is not running in the context of an SDK.
|
|
|