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

Unified Diff: pkg/dartdoc/lib/mirrors.dart

Issue 11342039: LibraryMirror interface updated to match dart:mirrors. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Updated cf. comment Created 8 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 | « pkg/dartdoc/lib/dartdoc.dart ('k') | pkg/dartdoc/lib/mirrors_util.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/dartdoc/lib/mirrors.dart
diff --git a/pkg/dartdoc/lib/mirrors.dart b/pkg/dartdoc/lib/mirrors.dart
index ba361681f7f72d624f597770856872318fb79b2d..6025c10a8e597f081d284c4bc906baae588f7359 100644
--- a/pkg/dartdoc/lib/mirrors.dart
+++ b/pkg/dartdoc/lib/mirrors.dart
@@ -149,14 +149,37 @@ abstract class ObjectMirror implements Mirror {
*/
abstract class LibraryMirror implements ObjectMirror, DeclarationMirror {
/**
- * The name of the library, as given in #library().
+ * An immutable map from from names to mirrors for all members in
+ * this library.
+ *
+ * The members of a library are its top-level classes,
+ * functions, variables, getters, and setters.
*/
- String get simpleName;
+ Map<String, Mirror> get members;
+
+ /**
+ * An immutable map from names to mirrors for all class
+ * declarations in this library.
+ */
+ Map<String, ClassMirror> get classes;
+
+ /**
+ * An immutable map from names to mirrors for all function, getter,
+ * and setter declarations in this library.
+ */
+ Map<String, MethodMirror> get functions;
+
+ /**
+ * An immutable map from names to mirrors for all getter
+ * declarations in this library.
+ */
+ Map<String, MethodMirror> get getters;
/**
- * Returns an iterable over all types in the library.
+ * An immutable map from names to mirrors for all setter
+ * declarations in this library.
*/
- Map<String, ClassMirror> get types;
+ Map<String, MethodMirror> get setters;
/**
* Returns the canonical URI for this library.
« no previous file with comments | « pkg/dartdoc/lib/dartdoc.dart ('k') | pkg/dartdoc/lib/mirrors_util.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698