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

Side by Side Diff: lib/core/object.dart

Issue 11264005: InvocationMirror implemented in dart2js. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Working version 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 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 /** 5 /**
6 * Everything in Dart is an [Object]. 6 * Everything in Dart is an [Object].
7 */ 7 */
8 class Object { 8 class Object {
9 /** 9 /**
10 * Creates a new [Object] instance. 10 * Creates a new [Object] instance.
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 /** 48 /**
49 * [noSuchMethod] is invoked when users invoke a non-existant method 49 * [noSuchMethod] is invoked when users invoke a non-existant method
50 * on an object. The name of the method and the arguments of the 50 * on an object. The name of the method and the arguments of the
51 * invocation are passed to [noSuchMethod]. If [noSuchMethod] 51 * invocation are passed to [noSuchMethod]. If [noSuchMethod]
52 * returns a value, that value becomes the result of the original 52 * returns a value, that value becomes the result of the original
53 * invocation. 53 * invocation.
54 * 54 *
55 * The default behavior of [noSuchMethod] is to throw a 55 * The default behavior of [noSuchMethod] is to throw a
56 * [noSuchMethodError]. 56 * [noSuchMethodError].
57 */ 57 */
58 external Dynamic noSuchMethod(String name, List args); 58 external Dynamic noSuchMethod(InvocationMirror msg);
59 /** 59 /**
60 * A representation of the runtime type of the object. 60 * A representation of the runtime type of the object.
61 */ 61 */
62 external Type get runtimeType; 62 external Type get runtimeType;
63 } 63 }
64 64
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698