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

Side by Side Diff: pkg/args/lib/args.dart

Issue 14173003: Remove Collection, Collections and clean up List/Set/Queue implementations of retain/remove. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 8 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) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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 /** 5 /**
6 * This library lets you define parsers for parsing raw command-line arguments 6 * This library lets you define parsers for parsing raw command-line arguments
7 * into a set of options and values using [GNU][] and [POSIX][] style options. 7 * into a set of options and values using [GNU][] and [POSIX][] style options.
8 * 8 *
9 * ## Defining options ## 9 * ## Defining options ##
10 * 10 *
(...skipping 399 matching lines...) Expand 10 before | Expand all | Expand 10 after
410 /** Gets the parsed command-line option named [name]. */ 410 /** Gets the parsed command-line option named [name]. */
411 operator [](String name) { 411 operator [](String name) {
412 if (!_options.containsKey(name)) { 412 if (!_options.containsKey(name)) {
413 throw new ArgumentError( 413 throw new ArgumentError(
414 'Could not find an option named "$name".'); 414 'Could not find an option named "$name".');
415 } 415 }
416 416
417 return _options[name]; 417 return _options[name];
418 } 418 }
419 419
420 /** Get the names of the options as a [Collection]. */ 420 /** Get the names of the options as an [Iterable]. */
421 Collection<String> get options => _options.keys.toList(growable: false); 421 Iterable<String> get options => _options.keys;
422 } 422 }
423 423
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698