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

Side by Side Diff: dart/sdk/lib/mirrors/mirrors.dart

Issue 14251021: Move invokeOn to InstanceMirror. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 8 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 // For the purposes of the mirrors library, we adopt a naming 5 // For the purposes of the mirrors library, we adopt a naming
6 // convention with respect to getters and setters. Specifically, for 6 // convention with respect to getters and setters. Specifically, for
7 // some variable or field... 7 // some variable or field...
8 // 8 //
9 // var myField; 9 // var myField;
10 // 10 //
(...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after
270 270
271 /** 271 /**
272 * If the [InstanceMirror] reflects an instance it is meaningful to 272 * If the [InstanceMirror] reflects an instance it is meaningful to
273 * have a local reference to, we provide access to the actual 273 * have a local reference to, we provide access to the actual
274 * instance here. 274 * instance here.
275 * 275 *
276 * If you access [reflectee] when [hasReflectee] is false, an 276 * If you access [reflectee] when [hasReflectee] is false, an
277 * exception is thrown. 277 * exception is thrown.
278 */ 278 */
279 get reflectee; 279 get reflectee;
280
281 /**
282 * Perform [invocation] on [reflectee].
283 *
284 * If [reflectee] doesn't support the invocation, its [noSuchMethod]
285 * method will be called with either [invocation] or another
286 * equivalent instance of [Invocation].
287 */
288 delegate(Invocation invocation);
280 } 289 }
281 290
282 /** 291 /**
283 * A [ClosureMirror] reflects a closure. 292 * A [ClosureMirror] reflects a closure.
284 * 293 *
285 * A [ClosureMirror] provides access to its captured variables and 294 * A [ClosureMirror] provides access to its captured variables and
286 * provides the ability to execute its reflectee. 295 * provides the ability to execute its reflectee.
287 */ 296 */
288 abstract class ClosureMirror implements InstanceMirror { 297 abstract class ClosureMirror implements InstanceMirror {
289 /** 298 /**
(...skipping 523 matching lines...) Expand 10 before | Expand all | Expand 10 after
813 /** 822 /**
814 * Is [:true:] if this comment is a documentation comment. 823 * Is [:true:] if this comment is a documentation comment.
815 * 824 *
816 * That is, that the comment is either enclosed in [: /** ... */ :] or starts 825 * That is, that the comment is either enclosed in [: /** ... */ :] or starts
817 * with [: /// :]. 826 * with [: /// :].
818 */ 827 */
819 final bool isDocComment; 828 final bool isDocComment;
820 829
821 const Comment(this.text, this.trimmedText, this.isDocComment); 830 const Comment(this.text, this.trimmedText, this.isDocComment);
822 } 831 }
OLDNEW
« no previous file with comments | « dart/sdk/lib/core/invocation.dart ('k') | dart/tests/compiler/dart2js_native/native_no_such_method_exception3_frog_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698