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

Unified Diff: lib/mirrors/mirrors.dart

Issue 10836320: Move around a couple of interface definitions in mirrors.dart. No (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 4 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/mirrors/mirrors.dart
===================================================================
--- lib/mirrors/mirrors.dart (revision 10918)
+++ lib/mirrors/mirrors.dart (working copy)
@@ -226,6 +226,53 @@
}
/**
+ * A [LibraryMirror] reflects a Dart language library, providing
+ * access to the variables, functions, classes, and interfaces of the
+ * library.
+ */
+interface LibraryMirror extends ObjectMirror {
+ /**
+ * The name of this library, as provided in the [#library] declaration.
+ */
+ final String simpleName;
+
+ /**
+ * The url of the library.
+ *
+ * TODO(turnidge): Document where this url comes from. Will this
+ * value be sensible?
+ */
+ final String url;
+
+ /**
+ * An immutable map from from names to mirrors for all members in
+ * this library.
+ *
+ * The members of a library are its top-level classes, interfaces,
+ * functions, variables, getters, and setters.
+ */
+ final Map<String, Mirror> members;
+
+ /**
+ * An immutable map from names to mirrors for all class and
+ * interface declarations in this library.
+ */
+ final Map<String, ClassMirror> classes;
+
+ /**
+ * An immutable map from names to mirrors for all function
+ * declarations in this library.
+ */
+ final Map<String, MethodMirror> functions;
+
+ /**
+ * An immutable map from names to mirrors for all variable
+ * declarations in this library.
+ */
+ final Map<String, VariableMirror> variables;
+}
+
+/**
* A [TypeMirror] reflects a Dart language class, interface, typedef
* or type variable.
*/
@@ -302,53 +349,6 @@
}
/**
- * A [LibraryMirror] reflects a Dart language library, providing
- * access to the variables, functions, classes, and interfaces of the
- * library.
- */
-interface LibraryMirror extends ObjectMirror {
- /**
- * The name of this library, as provided in the [#library] declaration.
- */
- final String simpleName;
-
- /**
- * The url of the library.
- *
- * TODO(turnidge): Document where this url comes from. Will this
- * value be sensible?
- */
- final String url;
-
- /**
- * An immutable map from from names to mirrors for all members in
- * this library.
- *
- * The members of a library are its top-level classes, interfaces,
- * functions, variables, getters, and setters.
- */
- final Map<String, Mirror> members;
-
- /**
- * An immutable map from names to mirrors for all class and
- * interface declarations in this library.
- */
- final Map<String, ClassMirror> classes;
-
- /**
- * An immutable map from names to mirrors for all function
- * declarations in this library.
- */
- final Map<String, MethodMirror> functions;
-
- /**
- * An immutable map from names to mirrors for all variable
- * declarations in this library.
- */
- final Map<String, VariableMirror> variables;
-}
-
-/**
* A [MethodMirror] reflects a Dart language function, method,
* constructor, getter, or setter.
*/
@@ -441,31 +441,6 @@
}
/**
- * A [ParameterMirror] reflects a Dart formal parameter declaration.
- */
-interface ParameterMirror extends VariableMirror {
- /**
- * Returns the type of this parameter.
- */
- final TypeMirror type;
-
- /**
- * Returns the default value for this parameter.
- */
- final String defaultValue;
-
- /**
- * Returns true if this parameter has a default value.
- */
- final bool hasDefaultValue;
-
- /**
- * Returns true if this parameter is optional.
- */
- final bool isOptional;
-}
-
-/**
* A [VariableMirror] reflects a Dart language variable declaration.
*/
interface VariableMirror {
@@ -502,7 +477,31 @@
final bool isFinal;
}
+/**
+ * A [ParameterMirror] reflects a Dart formal parameter declaration.
+ */
+interface ParameterMirror extends VariableMirror {
+ /**
+ * Returns the type of this parameter.
+ */
+ final TypeMirror type;
+ /**
+ * Returns the default value for this parameter.
+ */
+ final String defaultValue;
+
+ /**
+ * Returns true if this parameter has a default value.
+ */
+ final bool hasDefaultValue;
+
+ /**
+ * Returns true if this parameter is optional.
+ */
+ final bool isOptional;
+}
+
/**
* When an error occurs during the mirrored execution of code, a
* [MirroredError] is thrown.
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698