| OLD | NEW |
| 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, 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 library reflective_tests; | 5 library reflective_tests; |
| 6 | 6 |
| 7 import 'dart:async'; | 7 import 'dart:async'; |
| 8 | 8 |
| 9 @MirrorsUsed(metaTargets: 'ReflectiveTestCase') | 9 @MirrorsUsed(metaTargets: 'ReflectiveTestCase') |
| 10 import 'dart:mirrors'; | 10 import 'dart:mirrors'; |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 try { | 80 try { |
| 81 invocationResult = instanceMirror.invoke(symbol, []).reflectee; | 81 invocationResult = instanceMirror.invoke(symbol, []).reflectee; |
| 82 } on NoSuchMethodError catch (e) { | 82 } on NoSuchMethodError catch (e) { |
| 83 } | 83 } |
| 84 if (invocationResult is Future) { | 84 if (invocationResult is Future) { |
| 85 return invocationResult; | 85 return invocationResult; |
| 86 } else { | 86 } else { |
| 87 return new Future.value(invocationResult); | 87 return new Future.value(invocationResult); |
| 88 } | 88 } |
| 89 } | 89 } |
| OLD | NEW |