| 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" show UnmodifiableListView, UnmodifiableMapView; |
| 8 import "dart:_internal" as internal; |
| 9 |
| 7 var _dirty = false; | 10 var _dirty = false; |
| 8 final _emptyList = new UnmodifiableListView([]); | 11 final _emptyList = new UnmodifiableListView([]); |
| 9 | 12 |
| 10 class _InternalMirrorError { | 13 class _InternalMirrorError { |
| 11 final String _msg; | 14 final String _msg; |
| 12 const _InternalMirrorError(this._msg); | 15 const _InternalMirrorError(this._msg); |
| 13 String toString() => _msg; | 16 String toString() => _msg; |
| 14 } | 17 } |
| 15 | 18 |
| 16 String _n(Symbol symbol) => internal.Symbol.getName(symbol); | 19 String _n(Symbol symbol) => internal.Symbol.getName(symbol); |
| (...skipping 1662 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1679 } | 1682 } |
| 1680 | 1683 |
| 1681 static Type _instantiateType(Type key, List<Type> typeArguments) { | 1684 static Type _instantiateType(Type key, List<Type> typeArguments) { |
| 1682 if (typeArguments.isEmpty) { | 1685 if (typeArguments.isEmpty) { |
| 1683 throw new ArgumentError.value( | 1686 throw new ArgumentError.value( |
| 1684 typeArguments, 'typeArguments', 'Type arguments list cannot be empty.'); | 1687 typeArguments, 'typeArguments', 'Type arguments list cannot be empty.'); |
| 1685 } | 1688 } |
| 1686 return instantiateGenericType(key, typeArguments.toList(growable: false)); | 1689 return instantiateGenericType(key, typeArguments.toList(growable: false)); |
| 1687 } | 1690 } |
| 1688 } | 1691 } |
| OLD | NEW |