| OLD | NEW |
| 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 class _InvocationMirror implements InvocationMirror { | 5 class _InvocationMirror implements InvocationMirror { |
| 6 static final int METHOD = 0; | 6 static final int METHOD = 0; |
| 7 static final int GETTER = 1; | 7 static final int GETTER = 1; |
| 8 static final int SETTER = 2; | 8 static final int SETTER = 2; |
| 9 | 9 |
| 10 final String memberName; | 10 final String memberName; |
| 11 final List positionalArguments; | 11 final List positionalArguments; |
| 12 final Map<String,dynamic> namedArguments = null; | 12 final Map<String,dynamic> namedArguments = null; |
| 13 | 13 |
| 14 final int _type; | 14 final int _type; |
| 15 | 15 |
| 16 _InvocationMirror(this.memberName, this._type, this.positionalArguments); | 16 _InvocationMirror(this.memberName, this._type, this.positionalArguments); |
| 17 | 17 |
| 18 static _allocateInvocationMirror(name, arguments) { | 18 static _allocateInvocationMirror(name, arguments) { |
| 19 return new _InvocationMirror(name, METHOD, arguments); | 19 return new _InvocationMirror(name, METHOD, arguments); |
| 20 } | 20 } |
| 21 | 21 |
| 22 bool get isMethod => _type == METHOD; | 22 bool get isMethod => _type == METHOD; |
| 23 bool get isAccessor => _type != METHOD; | 23 bool get isAccessor => _type != METHOD; |
| 24 bool get isGetter => _type == GETTER; | 24 bool get isGetter => _type == GETTER; |
| 25 bool get isSetter => _type == SETTER; | 25 bool get isSetter => _type == SETTER; |
| 26 | 26 |
| 27 invokeOn(Object receiver) { | 27 invokeOn(Object receiver) { |
| 28 throw new UnsupportedOperation("invokeOn not implemented yet"); | 28 throw new UnsupportedError("invokeOn not implemented yet"); |
| 29 } | 29 } |
| 30 } | 30 } |
| 31 | 31 |
| OLD | NEW |