Chromium Code Reviews| Index: runtime/lib/invocation_mirror_patch.dart |
| diff --git a/runtime/lib/invocation_mirror_patch.dart b/runtime/lib/invocation_mirror_patch.dart |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..eaeea80a4d169e12dd4e7061227613593b0b78cc |
| --- /dev/null |
| +++ b/runtime/lib/invocation_mirror_patch.dart |
| @@ -0,0 +1,27 @@ |
| +// 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. |
| + |
| +class _InvocationMirror implements InvocationMirror { |
| + static final int METHOD = 0; |
|
Mads Ager (google)
2012/10/25 08:27:32
Make these private!
Lasse Reichstein Nielsen
2012/10/25 08:42:40
They are statics inside a private class. There is
|
| + static final int GETTER = 1; |
| + static final int SETTER = 2; |
| + |
| + final String methodName; |
| + final int _type; // 0 : Method |
|
Mads Ager (google)
2012/10/25 08:26:57
I don't understand the comment? Remove?
Could you
Lasse Reichstein Nielsen
2012/10/25 08:42:40
Absolutely. Was writing a comment and decided to a
|
| + final List positionalArguments; |
| + final Map<String,dynamic> namedArguments = null; |
| + |
| + _InvocationMirror(this.methodName, this._type, this.positionalArguments); |
| + |
| + bool get isMethod => _type == METHOD; |
| + bool get isAccessor => _type != METHOD; |
| + bool get isGetter => _type == GETTER; |
| + bool get isSetter => _type == SETTER; |
| + |
|
Mads Ager (google)
2012/10/25 08:26:57
Remove extra empty line.
Lasse Reichstein Nielsen
2012/10/25 08:42:40
Done.
|
| + |
| + invokeOn(Object receiver) { |
| + throw new UnsupportedOperation("invokeOn not implemented yet"); |
| + } |
| +} |
| + |