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

Unified Diff: sdk/lib/mirrors/mirrors.dart

Issue 44813004: Tests for instanceMembers, staticMembers, toplevelMembers. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 2 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
« no previous file with comments | « no previous file | tests/lib/lib.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/mirrors/mirrors.dart
diff --git a/sdk/lib/mirrors/mirrors.dart b/sdk/lib/mirrors/mirrors.dart
index 2651d723a5295400155dd520b5e175e2a4493b9a..12375dda6a6ec09f2ddcb2e2f8861dd4aa0218a4 100644
--- a/sdk/lib/mirrors/mirrors.dart
+++ b/sdk/lib/mirrors/mirrors.dart
@@ -578,6 +578,18 @@ abstract class LibraryMirror implements DeclarationMirror, ObjectMirror {
Map<Symbol, DeclarationMirror> get declarations;
/**
+ * Returns a map of the top-level methods, getters and setters of the library.
+ *
+ * The intent is to capture those members that constitute the API of a
+ * library. Hence fields are not included, but the getters and setters
+ * implicitly introduced by fields are included. Synthetic getters for the
+ * types exported by the library are also included.
+ *
+ * The map is keyed by the simple names of the members.
+ */
+ Map<Symbol, MethodMirror> get topLevelMembers;
+
+ /**
* Returns [:true:] if this mirror is equal to [other].
* Otherwise returns [:false:].
*
@@ -711,6 +723,32 @@ abstract class ClassMirror implements TypeMirror, ObjectMirror {
Map<Symbol, DeclarationMirror> get declarations;
/**
+ * Returns a map of the methods, getters and setters of an instance of the
+ * class.
+ *
+ * The intent is to capture those members that constitute the API of an
+ * instance. Hence fields are not included, but the getters and setters
+ * implicitly introduced by fields are included. The map includes methods,
+ * getters and setters that are inherited as well as those introduced by the
+ * class itself.
+ *
+ * The map is keyed by the simple names of the members.
+ */
+ Map<Symbol, MethodMirror> get instanceMembers;
+
+ /**
+ * Returns a map of the static methods, getters and setters of the class.
+ *
+ * The intent is to capture those members that constitute the API of a class.
+ * Hence fields are not included, but the getters and setters implicitly
+ * introduced by fields are included.
+ *
+ * The map is keyed by the simple names of the members.
+ */
+ Map<Symbol, MethodMirror> get staticMembers;
+
+
+ /**
* The mixin of this class.
* If this class is the result of a mixin application of the
* form S with M, returns a class mirror on M.
« no previous file with comments | « no previous file | tests/lib/lib.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698