Chromium Code Reviews| Index: sdk/lib/_internal/compiler/implementation/mirrors/dart2js_mirror.dart |
| diff --git a/sdk/lib/_internal/compiler/implementation/mirrors/dart2js_mirror.dart b/sdk/lib/_internal/compiler/implementation/mirrors/dart2js_mirror.dart |
| index 721c9adefdf187e63849b41d4086acb974fac1a4..a5ee505b4d90cce3f327f8730186ff0567fd1640 100644 |
| --- a/sdk/lib/_internal/compiler/implementation/mirrors/dart2js_mirror.dart |
| +++ b/sdk/lib/_internal/compiler/implementation/mirrors/dart2js_mirror.dart |
| @@ -1171,11 +1171,13 @@ class Dart2JsInterfaceTypeMirror extends Dart2JsTypeElementMirror |
| List<TypeMirror> get typeArguments { |
| if (_typeArguments == null) { |
| _typeArguments = <TypeMirror>[]; |
|
ahe
2012/11/29 10:09:08
This list is not immutable. Also, you can share a
|
| - Link<DartType> type = _interfaceType.typeArguments; |
| - while (type != null && type.head != null) { |
| - _typeArguments.add(_convertTypeToTypeMirror(mirrors, type.head, |
| - mirrors.compiler.types.dynamicType)); |
| - type = type.tail; |
| + if (!_interfaceType.isRaw) { |
| + Link<DartType> type = _interfaceType.typeArguments; |
| + while (type != null && type.head != null) { |
| + _typeArguments.add(_convertTypeToTypeMirror(mirrors, type.head, |
| + mirrors.compiler.types.dynamicType)); |
| + type = type.tail; |
| + } |
| } |
| } |
| return _typeArguments; |