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

Side by Side Diff: runtime/lib/invocation_mirror_patch.dart

Issue 11262029: Add implementation class of InvocationMirror for VM. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Addressed review comments. Created 8 years, 1 month 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
« no previous file with comments | « no previous file | runtime/lib/lib_sources.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // BSD-style license that can be found in the LICENSE file.
4
5 class _InvocationMirror implements InvocationMirror {
6 static final int METHOD = 0;
7 static final int GETTER = 1;
8 static final int SETTER = 2;
9
10 final String methodName;
11 final List positionalArguments;
12 final Map<String,dynamic> namedArguments = null;
13
14 final int _type;
15
16 _InvocationMirror(this.methodName, this._type, this.positionalArguments);
17
18 bool get isMethod => _type == METHOD;
19 bool get isAccessor => _type != METHOD;
20 bool get isGetter => _type == GETTER;
21 bool get isSetter => _type == SETTER;
22
23 invokeOn(Object receiver) {
24 throw new UnsupportedOperation("invokeOn not implemented yet");
25 }
26 }
27
OLDNEW
« no previous file with comments | « no previous file | runtime/lib/lib_sources.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698