| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 part of dart.io; | 5 part of dart.io; |
| 6 | 6 |
| 7 @deprecated |
| 7 /** | 8 /** |
| 8 * The Options object allows accessing the arguments which have been passed to | 9 * Deprecated: the Options object allows accessing the arguments which |
| 9 * the current isolate. | 10 * have been passed to the current isolate. |
| 11 * |
| 12 * This class has been replaced by making the arguments an optional parameter |
| 13 * to main. The other members, executable, script, and versione, are already |
| 14 * available on Platform (which will move to the dart:plaform library). |
| 15 * |
| 16 * This class will be removed on October 28, 2013. |
| 10 */ | 17 */ |
| 11 abstract class Options { | 18 abstract class Options { |
| 12 /** | 19 /** |
| 13 * A newly constructed Options object contains the arguments exactly as they | 20 * A newly constructed Options object contains the arguments exactly as they |
| 14 * have been passed to the isolate. | 21 * have been passed to the isolate. |
| 15 */ | 22 */ |
| 16 factory Options() => new _OptionsImpl(); | 23 factory Options() => new _OptionsImpl(); |
| 17 | 24 |
| 18 /** | 25 /** |
| 19 * Returns a list of arguments that have been passed to this isolate. Any | 26 * Returns a list of arguments that have been passed to this isolate. Any |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 // On first access make a copy of the native arguments. | 67 // On first access make a copy of the native arguments. |
| 61 _arguments = _nativeArguments.sublist(0, _nativeArguments.length); | 68 _arguments = _nativeArguments.sublist(0, _nativeArguments.length); |
| 62 } | 69 } |
| 63 return _arguments; | 70 return _arguments; |
| 64 } | 71 } |
| 65 | 72 |
| 66 String get executable => Platform.executable; | 73 String get executable => Platform.executable; |
| 67 String get script => Platform.script; | 74 String get script => Platform.script; |
| 68 String get version => Platform.version; | 75 String get version => Platform.version; |
| 69 } | 76 } |
| OLD | NEW |