Chromium Code Reviews| OLD | NEW |
|---|---|
| (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; | |
|
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
| |
| 7 static final int GETTER = 1; | |
| 8 static final int SETTER = 2; | |
| 9 | |
| 10 final String methodName; | |
| 11 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
| |
| 12 final List positionalArguments; | |
| 13 final Map<String,dynamic> namedArguments = null; | |
| 14 | |
| 15 _InvocationMirror(this.methodName, this._type, this.positionalArguments); | |
| 16 | |
| 17 bool get isMethod => _type == METHOD; | |
| 18 bool get isAccessor => _type != METHOD; | |
| 19 bool get isGetter => _type == GETTER; | |
| 20 bool get isSetter => _type == SETTER; | |
| 21 | |
|
Mads Ager (google)
2012/10/25 08:26:57
Remove extra empty line.
Lasse Reichstein Nielsen
2012/10/25 08:42:40
Done.
| |
| 22 | |
| 23 invokeOn(Object receiver) { | |
| 24 throw new UnsupportedOperation("invokeOn not implemented yet"); | |
| 25 } | |
| 26 } | |
| 27 | |
| OLD | NEW |