| Index: pkg/analyzer/lib/src/summary/link.dart
|
| diff --git a/pkg/analyzer/lib/src/summary/link.dart b/pkg/analyzer/lib/src/summary/link.dart
|
| index 52b3243b6128cd12272b4874c563f160dd5de340..4297af07e15405d7be78e62039be127053eb707d 100644
|
| --- a/pkg/analyzer/lib/src/summary/link.dart
|
| +++ b/pkg/analyzer/lib/src/summary/link.dart
|
| @@ -221,8 +221,6 @@ EntityRefBuilder _createLinkedType(
|
| /**
|
| * Store the given [typeArguments] in [encodedType], using [compilationUnit] and
|
| * [typeParameterContext] to serialize them.
|
| - *
|
| - * Trailing arguments of type `dynamic` are dropped.
|
| */
|
| void _storeTypeArguments(
|
| List<DartType> typeArguments,
|
| @@ -230,20 +228,13 @@ void _storeTypeArguments(
|
| CompilationUnitElementInBuildUnit compilationUnit,
|
| TypeParameterizedElementForLink typeParameterContext) {
|
| int count = typeArguments.length;
|
| - while (count > 0) {
|
| - if (typeArguments[count - 1].isDynamic) {
|
| - count--;
|
| - } else {
|
| - List<EntityRefBuilder> encodedTypeArguments =
|
| - new List<EntityRefBuilder>(count);
|
| - for (int i = 0; i < count; i++) {
|
| - encodedTypeArguments[i] = _createLinkedType(
|
| - typeArguments[i], compilationUnit, typeParameterContext);
|
| - }
|
| - encodedType.typeArguments = encodedTypeArguments;
|
| - break;
|
| - }
|
| + List<EntityRefBuilder> encodedTypeArguments =
|
| + new List<EntityRefBuilder>(count);
|
| + for (int i = 0; i < count; i++) {
|
| + encodedTypeArguments[i] = _createLinkedType(
|
| + typeArguments[i], compilationUnit, typeParameterContext);
|
| }
|
| + encodedType.typeArguments = encodedTypeArguments;
|
| }
|
|
|
| /**
|
|
|