| 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 library mirrors; | 5 library mirrors; |
| 6 | 6 |
| 7 import 'dart:async'; | 7 import 'dart:async'; |
| 8 import 'dart:uri'; | 8 import 'dart:uri'; |
| 9 | 9 |
| 10 // TODO(rnystrom): Use "package:" URL (#4968). | 10 // TODO(rnystrom): Use "package:" URL (#4968). |
| (...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 162 int get length; | 162 int get length; |
| 163 } | 163 } |
| 164 | 164 |
| 165 /** | 165 /** |
| 166 * Specialized [InstanceMirror] used for reflection on constant maps. | 166 * Specialized [InstanceMirror] used for reflection on constant maps. |
| 167 */ | 167 */ |
| 168 abstract class MapInstanceMirror implements InstanceMirror { | 168 abstract class MapInstanceMirror implements InstanceMirror { |
| 169 /** | 169 /** |
| 170 * Returns a collection containing all the keys in the map. | 170 * Returns a collection containing all the keys in the map. |
| 171 */ | 171 */ |
| 172 Collection<String> get keys; | 172 Iterable<String> get keys; |
| 173 | 173 |
| 174 /** | 174 /** |
| 175 * Returns a future on the instance mirror of the value for the given key or | 175 * Returns a future on the instance mirror of the value for the given key or |
| 176 * null if key is not in the map. | 176 * null if key is not in the map. |
| 177 */ | 177 */ |
| 178 Future<InstanceMirror> operator[](String key); | 178 Future<InstanceMirror> operator[](String key); |
| 179 | 179 |
| 180 /** | 180 /** |
| 181 * The number of {key, value} pairs in the map. | 181 * The number of {key, value} pairs in the map. |
| 182 */ | 182 */ |
| (...skipping 508 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 691 /** | 691 /** |
| 692 * Returns the URI where the source originated. | 692 * Returns the URI where the source originated. |
| 693 */ | 693 */ |
| 694 Uri get sourceUri; | 694 Uri get sourceUri; |
| 695 | 695 |
| 696 /** | 696 /** |
| 697 * Returns the text of this source. | 697 * Returns the text of this source. |
| 698 */ | 698 */ |
| 699 String get sourceText; | 699 String get sourceText; |
| 700 } | 700 } |
| OLD | NEW |