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). |
11 import 'dart2js_mirror.dart'; | 11 import 'dart2js_mirror.dart'; |
12 | 12 |
13 /** | 13 /** |
14 * The main interface for the whole mirror system. | 14 * The main interface for the whole mirror system. |
15 */ | 15 */ |
16 abstract class MirrorSystem { | 16 abstract class MirrorSystem { |
17 /** | 17 /** |
18 * Returns an unmodifiable map of all libraries in this mirror system. | 18 * Returns an unmodifiable map of all libraries in this mirror system. |
19 */ | 19 */ |
20 // TODO(johnniwinther): Change to Map<Uri, LibraryMirror>. | 20 Map<Uri, LibraryMirror> get libraries; |
gbracha
2013/04/08 20:29:10
When was this API change discussed? As far as I ca
Johnni Winther
2013/04/22 13:00:02
It wasn't prior. I made this CL to get your input.
| |
21 Map<String, LibraryMirror> get libraries; | |
22 | 21 |
23 /** | 22 /** |
24 * A mirror on the [:dynamic:] type. | 23 * A mirror on the [:dynamic:] type. |
25 */ | 24 */ |
26 TypeMirror get dynamicType; | 25 TypeMirror get dynamicType; |
27 | 26 |
28 /** | 27 /** |
29 * A mirror on the [:void:] type. | 28 * A mirror on the [:void:] type. |
30 */ | 29 */ |
31 TypeMirror get voidType; | 30 TypeMirror get voidType; |
(...skipping 659 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
691 /** | 690 /** |
692 * Returns the URI where the source originated. | 691 * Returns the URI where the source originated. |
693 */ | 692 */ |
694 Uri get sourceUri; | 693 Uri get sourceUri; |
695 | 694 |
696 /** | 695 /** |
697 * Returns the text of this source. | 696 * Returns the text of this source. |
698 */ | 697 */ |
699 String get sourceText; | 698 String get sourceText; |
700 } | 699 } |
OLD | NEW |