Index: runtime/lib/mirrors_impl.dart |
=================================================================== |
--- runtime/lib/mirrors_impl.dart (revision 21177) |
+++ runtime/lib/mirrors_impl.dart (working copy) |
@@ -139,10 +139,10 @@ |
abstract class _LocalObjectMirrorImpl extends _LocalVMObjectMirrorImpl |
implements ObjectMirror { |
_LocalObjectMirrorImpl(ref) : super(ref) {} |
- |
- Future<InstanceMirror> invoke(String memberName, |
- List positionalArguments, |
- [Map<String,dynamic> namedArguments]) { |
+ |
+Future<InstanceMirror> invokeAsync(String memberName, |
+ List positionalArguments, |
+ [Map<String,dynamic> namedArguments]) { |
if (namedArguments != null) { |
throw new UnimplementedError( |
'named argument support is not implemented'); |
@@ -162,8 +162,7 @@ |
return completer.future; |
} |
- Future<InstanceMirror> getField(String fieldName) |
- { |
+ Future<InstanceMirror> getFieldAsync(String fieldName) { |
Completer<InstanceMirror> completer = new Completer<InstanceMirror>(); |
try { |
completer.complete(_getField(this, fieldName)); |
@@ -173,8 +172,7 @@ |
return completer.future; |
} |
- Future<InstanceMirror> setField(String fieldName, Object arg) |
- { |
+ Future<InstanceMirror> setFieldAsync(String fieldName, Object arg) { |
_validateArgument(0, arg); |
Completer<InstanceMirror> completer = new Completer<InstanceMirror>(); |
@@ -305,8 +303,8 @@ |
'ClosureMirror.source is not implemented'); |
} |
- Future<InstanceMirror> apply(List<Object> positionalArguments, |
- [Map<String,Object> namedArguments]) { |
+ Future<InstanceMirror> applyAsync(List<Object> positionalArguments, |
+ [Map<String,Object> namedArguments]) { |
if (namedArguments != null) { |
throw new UnimplementedError( |
'named argument support is not implemented'); |
@@ -501,9 +499,9 @@ |
String toString() => "ClassMirror on '$simpleName'"; |
- Future<InstanceMirror> newInstance(String constructorName, |
- List positionalArguments, |
- [Map<String,dynamic> namedArguments]) { |
+ Future<InstanceMirror> newInstanceAsync(String constructorName, |
+ List positionalArguments, |
+ [Map<String,dynamic> namedArguments]) { |
if (namedArguments != null) { |
throw new UnimplementedError( |
'named argument support is not implemented'); |
@@ -970,4 +968,8 @@ |
static InstanceMirror reflect(Object reflectee) { |
return makeLocalInstanceMirror(reflectee); |
} |
+ |
+ static ClassMirror reflectClass(Type reflectee) { |
+ throw new UnimplementedError('reflectClass is not implemented'); |
+ } |
} |