| 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:io'; | 8 import 'dart:io'; |
| 8 import 'dart:uri'; | 9 import 'dart:uri'; |
| 9 | 10 |
| 10 // TODO(rnystrom): Use "package:" URL (#4968). | 11 // TODO(rnystrom): Use "package:" URL (#4968). |
| 11 import 'dart2js_mirror.dart'; | 12 import 'dart2js_mirror.dart'; |
| 12 | 13 |
| 13 /** | 14 /** |
| 14 * [Compilation] encapsulates the compilation of a program. | 15 * [Compilation] encapsulates the compilation of a program. |
| 15 */ | 16 */ |
| 16 abstract class Compilation { | 17 abstract class Compilation { |
| (...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 187 * | 188 * |
| 188 * If you access [reflectee] when [hasReflectee] is false, an | 189 * If you access [reflectee] when [hasReflectee] is false, an |
| 189 * exception is thrown. | 190 * exception is thrown. |
| 190 */ | 191 */ |
| 191 get reflectee; | 192 get reflectee; |
| 192 } | 193 } |
| 193 | 194 |
| 194 /** | 195 /** |
| 195 * Specialized [InstanceMirror] used for reflection on constant lists. | 196 * Specialized [InstanceMirror] used for reflection on constant lists. |
| 196 */ | 197 */ |
| 197 abstract class ListInstanceMirror | 198 abstract class ListInstanceMirror implements InstanceMirror { |
| 198 implements InstanceMirror, Sequence<Future<InstanceMirror>> { | 199 Future<InstanceMirror> operator[](int index); |
| 199 | 200 int get length; |
| 200 } | 201 } |
| 201 | 202 |
| 202 /** | 203 /** |
| 203 * Specialized [InstanceMirror] used for reflection on constant maps. | 204 * Specialized [InstanceMirror] used for reflection on constant maps. |
| 204 */ | 205 */ |
| 205 abstract class MapInstanceMirror implements InstanceMirror { | 206 abstract class MapInstanceMirror implements InstanceMirror { |
| 206 /** | 207 /** |
| 207 * Returns a collection containing all the keys in the map. | 208 * Returns a collection containing all the keys in the map. |
| 208 */ | 209 */ |
| 209 Collection<String> get keys; | 210 Collection<String> get keys; |
| (...skipping 500 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 710 String get sourceText; | 711 String get sourceText; |
| 711 } | 712 } |
| 712 | 713 |
| 713 /** | 714 /** |
| 714 * Class used for encoding dartdoc comments as metadata annotations. | 715 * Class used for encoding dartdoc comments as metadata annotations. |
| 715 */ | 716 */ |
| 716 class DartdocComment { | 717 class DartdocComment { |
| 717 final String text; | 718 final String text; |
| 718 | 719 |
| 719 const DartdocComment(this.text); | 720 const DartdocComment(this.text); |
| 720 } | 721 } |
| OLD | NEW |