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

Unified Diff: dart/sdk/lib/core/invocation_mirror.dart

Issue 14049009: Rename Invocation to InvocationMirror. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Merged 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « dart/sdk/lib/core/invocation.dart ('k') | dart/sdk/lib/core/object.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/sdk/lib/core/invocation_mirror.dart
diff --git a/dart/sdk/lib/core/invocation_mirror.dart b/dart/sdk/lib/core/invocation_mirror.dart
deleted file mode 100644
index 3b5cda08bdb2934356ab4976fe9eae058afa7594..0000000000000000000000000000000000000000
--- a/dart/sdk/lib/core/invocation_mirror.dart
+++ /dev/null
@@ -1,52 +0,0 @@
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-
-part of dart.core;
-
-/**
- * Representation of the invocation of a member on an object.
- *
- * This is the type of objects passed to [Object.noSuchMethod] when
- * an object doesn't support the member invocation that was attempted
- * on it.
- */
-abstract class InvocationMirror {
- /** The name of the invoked member. */
- String get memberName;
-
- /** An unmodifiable view of the positional arguments of the call. */
- List get positionalArguments;
-
- /** An unmodifiable view of the named arguments of the call. */
- Map<String, dynamic> get namedArguments;
-
- /** Whether the invocation was a method call. */
- bool get isMethod;
-
- /**
- * Whether the invocation was a getter call.
- * If so, both types of arguments will be null.
- */
- bool get isGetter;
-
- /**
- * Whether the invocation was a setter call.
- *
- * If so, [arguments] will have exactly one positonal argument,
- * and namedArguments will be null.
- */
- bool get isSetter;
-
- /** Whether the invocation was a getter or a setter call. */
- bool get isAccessor => isGetter || isSetter;
-
- /**
- * Perform the invocation on the provided object.
- *
- * If the object doesn't support the invocation, its [noSuchMethod]
- * method will be called with either this [InvocationMirror] or another
- * equivalent [InvocationMirror].
- */
- invokeOn(Object receiver);
-}
« no previous file with comments | « dart/sdk/lib/core/invocation.dart ('k') | dart/sdk/lib/core/object.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698