| 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 | 8 |
| 9 /** | 9 /** |
| 10 * The main interface for the whole mirror system. | 10 * The main interface for the whole mirror system. |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 98 * | 98 * |
| 99 * This is defined to be equivalent to: | 99 * This is defined to be equivalent to: |
| 100 * [:mirror.owner != null && mirror.owner is LibraryMirror:] | 100 * [:mirror.owner != null && mirror.owner is LibraryMirror:] |
| 101 */ | 101 */ |
| 102 bool get isTopLevel; | 102 bool get isTopLevel; |
| 103 | 103 |
| 104 /** | 104 /** |
| 105 * A list of the metadata associated with this declaration. | 105 * A list of the metadata associated with this declaration. |
| 106 */ | 106 */ |
| 107 List<InstanceMirror> get metadata; | 107 List<InstanceMirror> get metadata; |
| 108 |
| 109 /** |
| 110 * Looks up [name] in the scope of this declaration. |
| 111 * |
| 112 * [name] may be either a single identifier or of the form [: prefix.id :]. |
| 113 * For methods and constructors, the scope includes the parameters. For |
| 114 * classes and typedefs, the scope includes the type variables. |
| 115 * For classes and class members, the scope includes inherited members. |
| 116 * |
| 117 * See also: |
| 118 * |
| 119 * * [Lexical Scope](https://www.dartlang.org/docs/dart-up-and-running/content
s/ch02.html#ch02-lexical-scope) |
| 120 * in Dart Up and Running. |
| 121 * * [Lexical Scoping](http://www.dartlang.org/docs/spec/latest/dart-language-
specification.html#h.jb82efuudrc5) |
| 122 * in the Dart Specification. |
| 123 */ |
| 124 DeclarationMirror lookupInScope(String name); |
| 108 } | 125 } |
| 109 | 126 |
| 110 abstract class ObjectMirror implements Mirror { | 127 abstract class ObjectMirror implements Mirror { |
| 111 /** | 128 /** |
| 112 * Invokes a getter and returns a mirror on the result. The getter | 129 * Invokes a getter and returns a mirror on the result. The getter |
| 113 * can be the implicit getter for a field or a user-defined getter | 130 * can be the implicit getter for a field or a user-defined getter |
| 114 * method. | 131 * method. |
| 115 */ | 132 */ |
| 116 InstanceMirror getField(String fieldName); | 133 InstanceMirror getField(String fieldName); |
| 117 } | 134 } |
| (...skipping 561 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 679 /** | 696 /** |
| 680 * Returns the URI where the source originated. | 697 * Returns the URI where the source originated. |
| 681 */ | 698 */ |
| 682 Uri get sourceUri; | 699 Uri get sourceUri; |
| 683 | 700 |
| 684 /** | 701 /** |
| 685 * Returns the text of this source. | 702 * Returns the text of this source. |
| 686 */ | 703 */ |
| 687 String get sourceText; | 704 String get sourceText; |
| 688 } | 705 } |
| OLD | NEW |