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

Side by Side Diff: corelib/src/options.dart

Issue 10380026: Add executable to Options interface to get the name of the executable used to execute the script. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 7 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011, 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 // Dart core library. 5 // Dart core library.
6 6
7 /** 7 /**
8 * The Options object allows accessing the arguments which have been passed to 8 * The Options object allows accessing the arguments which have been passed to
9 * the current isolate. 9 * the current isolate.
10 */ 10 */
11 interface Options default RuntimeOptions { 11 interface Options default RuntimeOptions {
12 /** 12 /**
13 * A newly constructed Options object contains the arguments exactly as they 13 * A newly constructed Options object contains the arguments exactly as they
14 * have been passed to the isolate. 14 * have been passed to the isolate.
15 */ 15 */
16 Options(); 16 Options();
17 17
18 /** 18 /**
19 * Returns a list of arguments that have been passed to this isolate. Any 19 * Returns a list of arguments that have been passed to this isolate. Any
20 * modifications to the list will be contained to the options object owning 20 * modifications to the list will be contained to the options object owning
21 * this list. 21 * this list.
22 */ 22 */
23 List<String> get arguments(); 23 List<String> get arguments();
24 24
25 /** 25 /**
26 * Returns the path of the executable used to run the script in this
27 * isolate.
Ivan Posva 2012/05/07 17:40:36 Please comment what happens if the execution envir
Mads Ager (google) 2012/05/08 06:39:04 Done.
Anders Johnsen 2012/05/09 07:16:43 Any change we could change this to always be absol
Mads Ager (google) 2012/05/09 07:38:09 This is in corelib so we shouldn't have dependenci
28 */
29 String get executable();
30
31 /**
26 * Returns the path of the script being run in this isolate. 32 * Returns the path of the script being run in this isolate.
27 */ 33 */
28 String get script(); 34 String get script();
29 } 35 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698