Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1338)

Unified Diff: sdk/lib/_internal/compiler/implementation/mirrors/mirrors.dart

Issue 18323004: Add lookupInScope to DeclarationMirror. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: sdk/lib/_internal/compiler/implementation/mirrors/mirrors.dart
diff --git a/sdk/lib/_internal/compiler/implementation/mirrors/mirrors.dart b/sdk/lib/_internal/compiler/implementation/mirrors/mirrors.dart
index 54e71ad4d3a285f4f69a3f913b27419a2191b4d3..a504221bfd048c04fd510b30c5e402ee1251b3a5 100644
--- a/sdk/lib/_internal/compiler/implementation/mirrors/mirrors.dart
+++ b/sdk/lib/_internal/compiler/implementation/mirrors/mirrors.dart
@@ -105,6 +105,12 @@ abstract class DeclarationMirror implements Mirror {
* A list of the metadata associated with this declaration.
*/
List<InstanceMirror> get metadata;
+
+ /**
+ * Looks up the potentially qualified [name] in the scope of this declaration.
Andrei Mouravski 2013/07/01 17:46:26 What does "potentially qualified" mean? Further,
Johnni Winther 2013/07/03 05:47:57 Done.
+ * For methods and constructors, the scope includes the parameters.
sra1 2013/07/01 18:57:30 For parameterized classes, does the scope include
Johnni Winther 2013/07/03 05:47:57 Yes. Added note in the documentation.
+ */
+ DeclarationMirror lookupInScope(String name);
}
abstract class ObjectMirror implements Mirror {

Powered by Google App Engine
This is Rietveld 408576698