| 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 import "dart:collection"; | 7 import "dart:collection"; |
| 8 | 8 |
| 9 // These values are allowed to be passed directly over the wire. | 9 // These values are allowed to be passed directly over the wire. |
| 10 bool _isSimpleValue(var value) { | 10 bool _isSimpleValue(var value) { |
| (...skipping 825 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 836 | 836 |
| 837 TypeMirror _upperBound = null; | 837 TypeMirror _upperBound = null; |
| 838 TypeMirror get upperBound { | 838 TypeMirror get upperBound { |
| 839 if (_upperBound == null) { | 839 if (_upperBound == null) { |
| 840 _upperBound = | 840 _upperBound = |
| 841 _Mirrors._reflectType(_TypeVariableMirror_upper_bound(_reflectee)); | 841 _Mirrors._reflectType(_TypeVariableMirror_upper_bound(_reflectee)); |
| 842 } | 842 } |
| 843 return _upperBound; | 843 return _upperBound; |
| 844 } | 844 } |
| 845 | 845 |
| 846 bool get hasReflectedType => false; |
| 847 Type get reflectedType => throw new UnsupportedError() ; |
| 848 |
| 849 List<TypeVariableMirror> get typeVariables => new UnmodifiableListView<TypeVar
iableMirror>(); |
| 850 List<TypeMirror> get typeArguments => new UnmodifiableListView<TypeMirror>(); |
| 851 |
| 846 bool get isOriginalDeclaration => true; | 852 bool get isOriginalDeclaration => true; |
| 847 ClassMirror get originalDeclaration => this; | 853 TypeMirror get originalDeclaration => this; |
| 848 | 854 |
| 849 String toString() => "TypeVariableMirror on '${_n(simpleName)}'"; | 855 String toString() => "TypeVariableMirror on '${_n(simpleName)}'"; |
| 850 | 856 |
| 851 static DeclarationMirror _TypeVariableMirror_owner(reflectee) | 857 static DeclarationMirror _TypeVariableMirror_owner(reflectee) |
| 852 native "TypeVariableMirror_owner"; | 858 native "TypeVariableMirror_owner"; |
| 853 | 859 |
| 854 static Type _TypeVariableMirror_upper_bound(reflectee) | 860 static Type _TypeVariableMirror_upper_bound(reflectee) |
| 855 native "TypeVariableMirror_upper_bound"; | 861 native "TypeVariableMirror_upper_bound"; |
| 856 } | 862 } |
| 857 | 863 |
| (...skipping 463 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1321 if (typeMirror == null) { | 1327 if (typeMirror == null) { |
| 1322 typeMirror = makeLocalTypeMirror(key); | 1328 typeMirror = makeLocalTypeMirror(key); |
| 1323 _instanitationCache[key] = typeMirror; | 1329 _instanitationCache[key] = typeMirror; |
| 1324 if (typeMirror is ClassMirror && !typeMirror._isGeneric) { | 1330 if (typeMirror is ClassMirror && !typeMirror._isGeneric) { |
| 1325 _declarationCache[key] = typeMirror; | 1331 _declarationCache[key] = typeMirror; |
| 1326 } | 1332 } |
| 1327 } | 1333 } |
| 1328 return typeMirror; | 1334 return typeMirror; |
| 1329 } | 1335 } |
| 1330 } | 1336 } |
| OLD | NEW |