| 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 eb24f6c0946aab88c2461d8255365b67ca7275bd..88bae5ebb8f066211f1a4264f1f5b03538ea10d2 100644
|
| --- a/pkg/analyzer/lib/src/summary/link.dart
|
| +++ b/pkg/analyzer/lib/src/summary/link.dart
|
| @@ -228,8 +228,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,
|
| @@ -237,20 +235,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;
|
| }
|
|
|
| /**
|
|
|