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 11363007: Properties added to MethodMirror (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
Index: pkg/dartdoc/lib/mirrors.dart
diff --git a/pkg/dartdoc/lib/mirrors.dart b/pkg/dartdoc/lib/mirrors.dart
index 7297364cfdbee9523827f124c569dc278da9d9ac..ece50b396ef39f6dd01653da004cf17f03a5991d 100644
--- a/pkg/dartdoc/lib/mirrors.dart
+++ b/pkg/dartdoc/lib/mirrors.dart
@@ -458,19 +458,38 @@ abstract class MethodMirror implements MemberMirror {
TypeMirror get returnType;
/**
- * Is [:true:] if this method is declared abstract.
+ * Is the reflectee abstract?
*/
bool get isAbstract;
/**
- * Is [:true:] if this method is a constant constructor.
+ * Is the reflectee a regular function or method?
+ *
+ * A function or method is regular if it is not a getter, setter, or
+ * constructor. Note that operators, by this definition, are
+ * regular methods.
ahe 2012/11/06 10:07:47 What about factories?
*/
- bool get isConst;
+ bool get isRegularMethod;
+
+ /**
+ * Is the reflectee a const constructor?
+ */
+ bool get isConstConstructor;
+
+ /**
+ * Is the reflectee a generative constructor?
+ */
+ bool get isGenerativeConstructor;
+
+ /**
+ * Is the reflectee a redirecting constructor?
+ */
+ bool get isRedirectingConstructor;
/**
- * Is [:true:] if this method is a factory method.
+ * Is the reflectee a factory constructor?
*/
- bool get isFactory;
+ bool get isFactoryConstructor;
/**
* Returns the constructor name for named constructors and factory methods,

Powered by Google App Engine
This is Rietveld 408576698