| 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, like 'foo', or of the |
| 113 * a prefixed identifier, like 'foo.bar', where 'foo' must be a prefix. |
| 114 * For methods and constructors, the scope includes the parameters. For |
| 115 * classes and typedefs, the scope includes the type variables. |
| 116 * For classes and class members, the scope includes inherited members. |
| 117 * |
| 118 * See also: |
| 119 * |
| 120 * * [Lexical Scope](https://www.dartlang.org/docs/dart-up-and-running/content
s/ch02.html#ch02-lexical-scope) |
| 121 * in Dart Up and Running. |
| 122 * * [Lexical Scoping](http://www.dartlang.org/docs/spec/latest/dart-language-
specification.html#h.jb82efuudrc5) |
| 123 * in the Dart Specification. |
| 124 */ |
| 125 DeclarationMirror lookupInScope(String name); |
| 108 } | 126 } |
| 109 | 127 |
| 110 abstract class ObjectMirror implements Mirror { | 128 abstract class ObjectMirror implements Mirror { |
| 111 /** | 129 /** |
| 112 * Invokes a getter and returns a mirror on the result. The getter | 130 * 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 | 131 * can be the implicit getter for a field or a user-defined getter |
| 114 * method. | 132 * method. |
| 115 */ | 133 */ |
| 116 InstanceMirror getField(String fieldName); | 134 InstanceMirror getField(String fieldName); |
| 117 } | 135 } |
| (...skipping 561 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 679 /** | 697 /** |
| 680 * Returns the URI where the source originated. | 698 * Returns the URI where the source originated. |
| 681 */ | 699 */ |
| 682 Uri get sourceUri; | 700 Uri get sourceUri; |
| 683 | 701 |
| 684 /** | 702 /** |
| 685 * Returns the text of this source. | 703 * Returns the text of this source. |
| 686 */ | 704 */ |
| 687 String get sourceText; | 705 String get sourceText; |
| 688 } | 706 } |
| OLD | NEW |