| 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 // VM-specific implementation of the dart:mirrors library. | 5 // VM-specific implementation of the dart:mirrors library. |
| 6 | 6 |
| 7 // These values are allowed to be passed directly over the wire. | 7 // These values are allowed to be passed directly over the wire. |
| 8 bool _isSimpleValue(var value) { | 8 bool _isSimpleValue(var value) { |
| 9 return (value == null || value is num || value is String || value is bool); | 9 return (value == null || value is num || value is String || value is bool); |
| 10 } | 10 } |
| (...skipping 1029 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1040 | 1040 |
| 1041 // Creates a new local InstanceMirror | 1041 // Creates a new local InstanceMirror |
| 1042 static InstanceMirror makeLocalInstanceMirror(Object reflectee) | 1042 static InstanceMirror makeLocalInstanceMirror(Object reflectee) |
| 1043 native 'Mirrors_makeLocalInstanceMirror'; | 1043 native 'Mirrors_makeLocalInstanceMirror'; |
| 1044 | 1044 |
| 1045 // Creates a new local mirror for some Object. | 1045 // Creates a new local mirror for some Object. |
| 1046 static InstanceMirror reflect(Object reflectee) { | 1046 static InstanceMirror reflect(Object reflectee) { |
| 1047 return makeLocalInstanceMirror(reflectee); | 1047 return makeLocalInstanceMirror(reflectee); |
| 1048 } | 1048 } |
| 1049 | 1049 |
| 1050 static ClassMirror reflectClass(Type reflectee) { | 1050 // Creates a new local ClassMirror. |
| 1051 throw new UnimplementedError('reflectClass is not implemented'); | 1051 static ClassMirror makeLocalClassMirror(Type key) |
| 1052 native "Mirrors_makeLocalClassMirror"; |
| 1053 |
| 1054 static ClassMirror reflectClass(Type key) { |
| 1055 return makeLocalClassMirror(key); |
| 1052 } | 1056 } |
| 1053 } | 1057 } |
| OLD | NEW |