| Index: sdk/lib/_internal/lib/js_mirrors.dart
|
| diff --git a/sdk/lib/_internal/lib/js_mirrors.dart b/sdk/lib/_internal/lib/js_mirrors.dart
|
| index 948a0d80608bd43d4027f5739f5997f6c98047b9..b5e91f2cda743c8d7e4a7d6a5d216f3bd428590c 100644
|
| --- a/sdk/lib/_internal/lib/js_mirrors.dart
|
| +++ b/sdk/lib/_internal/lib/js_mirrors.dart
|
| @@ -568,15 +568,6 @@ class JsMixinApplication extends JsTypeMirror with JsObjectMirror
|
| "Can't instantiate mixin application '${n(qualifiedName)}'");
|
| }
|
|
|
| - Future<InstanceMirror> newInstanceAsync(
|
| - Symbol constructorName,
|
| - List positionalArguments,
|
| - [Map<Symbol, dynamic> namedArguments]) {
|
| - return new Future<InstanceMirror>(
|
| - () => this.newInstance(
|
| - constructorName, positionalArguments, namedArguments));
|
| - }
|
| -
|
| bool get isOriginalDeclaration => true;
|
|
|
| ClassMirror get originalDeclaration => this;
|
| @@ -589,20 +580,6 @@ class JsMixinApplication extends JsTypeMirror with JsObjectMirror
|
| }
|
|
|
| abstract class JsObjectMirror implements ObjectMirror {
|
| - Future<InstanceMirror> setFieldAsync(Symbol fieldName, Object value) {
|
| - return new Future<InstanceMirror>(() => this.setField(fieldName, value));
|
| - }
|
| -
|
| - Future<InstanceMirror> getFieldAsync(Symbol fieldName) {
|
| - return new Future<InstanceMirror>(() => this.getField(fieldName));
|
| - }
|
| -
|
| - Future<InstanceMirror> invokeAsync(Symbol memberName,
|
| - List positionalArguments,
|
| - [Map<Symbol, dynamic> namedArguments]) {
|
| - return new Future<InstanceMirror>(
|
| - () => this.invoke(memberName, positionalArguments, namedArguments));
|
| - }
|
| }
|
|
|
| class JsInstanceMirror extends JsObjectMirror implements InstanceMirror {
|
| @@ -614,17 +591,6 @@ class JsInstanceMirror extends JsObjectMirror implements InstanceMirror {
|
|
|
| ClassMirror get type => reflectType(reflectee.runtimeType);
|
|
|
| - Future<InstanceMirror> invokeAsync(Symbol memberName,
|
| - List<Object> positionalArguments,
|
| - [Map<Symbol, dynamic> namedArguments]) {
|
| - if (namedArguments != null && !namedArguments.isEmpty) {
|
| - throw new UnsupportedError('Named arguments are not implemented.');
|
| - }
|
| - return
|
| - new Future<InstanceMirror>(
|
| - () => invoke(memberName, positionalArguments, namedArguments));
|
| - }
|
| -
|
| InstanceMirror invoke(Symbol memberName,
|
| List positionalArguments,
|
| [Map<Symbol,dynamic> namedArguments]) {
|
| @@ -987,18 +953,6 @@ class JsClassMirror extends JsTypeMirror with JsObjectMirror
|
| return reflect(mirror._invoke(positionalArguments, namedArguments));
|
| }
|
|
|
| - Future<InstanceMirror> newInstanceAsync(
|
| - Symbol constructorName,
|
| - List positionalArguments,
|
| - [Map<Symbol, dynamic> namedArguments]) {
|
| - if (namedArguments != null && !namedArguments.isEmpty) {
|
| - throw new UnsupportedError('Named arguments are not implemented.');
|
| - }
|
| - return new Future<InstanceMirror>(
|
| - () => newInstance(
|
| - constructorName, positionalArguments, namedArguments));
|
| - }
|
| -
|
| JsLibraryMirror get owner {
|
| if (_owner == null) {
|
| if (_jsConstructorOrInterceptor is Interceptor) {
|
| @@ -1247,12 +1201,6 @@ function(reflectee) {
|
| Function.apply(reflectee, positionalArguments, namedArguments));
|
| }
|
|
|
| - Future<InstanceMirror> applyAsync(List positionalArguments,
|
| - [Map<Symbol, dynamic> namedArguments]) {
|
| - return new Future<InstanceMirror>(
|
| - () => apply(positionalArguments, namedArguments));
|
| - }
|
| -
|
| String toString() => "ClosureMirror on '${Error.safeToString(reflectee)}'";
|
|
|
| // TODO(ahe): Implement these.
|
|
|