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

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: Rebase 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
« no previous file with comments | « runtime/vm/parser.cc ('k') | 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 8ac0e83a03843e99ed40c82ed4d48351ad1a2be0..796889c64c0a5a475b248da7c5795358f5499d3e 100644
--- a/sdk/lib/mirrors/mirrors.dart
+++ b/sdk/lib/mirrors/mirrors.dart
@@ -532,13 +532,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]
@@ -953,6 +946,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;
« no previous file with comments | « runtime/vm/parser.cc ('k') | tests/lib/lib.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698