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

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

Issue 23038010: Fix Function.end_token_pos() and implement MethodMirror.source getter (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 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
Index: sdk/lib/mirrors/mirrors.dart
diff --git a/sdk/lib/mirrors/mirrors.dart b/sdk/lib/mirrors/mirrors.dart
index b0d39d9c1262150a388d36111a8e4319868b8391..b84f37b392ee43da1a45191c25b4a94a0230e41e 100644
--- a/sdk/lib/mirrors/mirrors.dart
+++ b/sdk/lib/mirrors/mirrors.dart
@@ -531,13 +531,6 @@ abstract class ClosureMirror implements InstanceMirror {
MethodMirror get function;
/**
- * The source code for this closure, if available. Otherwise null.
- *
- * TODO(turnidge): Would this just be available in function?
- */
- String get source;
-
- /**
* Executes the closure and returns a mirror on the result.
* Let *f* be the closure reflected by this mirror,
* let *a1, ..., an* be the elements of [positionalArguments]
@@ -940,6 +933,11 @@ abstract class MethodMirror implements DeclarationMirror {
TypeMirror get returnType;
/**
+ * The source code for the reflectee, if available. Otherwise null.
+ */
+ String get source;
+
+ /**
* A list of mirrors on the parameters for the reflectee.
*/
List<ParameterMirror> get parameters;
« runtime/vm/parser.cc ('K') | « runtime/vm/parser.cc ('k') | tests/lib/lib.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698