| Index: pkg/analyzer/lib/src/summary/summarize_elements.dart
|
| diff --git a/pkg/analyzer/lib/src/summary/summarize_elements.dart b/pkg/analyzer/lib/src/summary/summarize_elements.dart
|
| index 7a5fc02b8427751f92780db1250914e6aa2c6454..c18ec66974bba635150fd8e0ed10ac43b14c0b9c 100644
|
| --- a/pkg/analyzer/lib/src/summary/summarize_elements.dart
|
| +++ b/pkg/analyzer/lib/src/summary/summarize_elements.dart
|
| @@ -295,6 +295,7 @@ class _CompilationUnitSerializer {
|
| * parameter [type].
|
| */
|
| int findTypeParameterIndex(TypeParameterType type, Element context) {
|
| + Element originalContext = context;
|
| int index = 0;
|
| while (context != null) {
|
| List<TypeParameterElement> typeParameters;
|
| @@ -316,7 +317,8 @@ class _CompilationUnitSerializer {
|
| }
|
| context = context.enclosingElement;
|
| }
|
| - throw new StateError('Unbound type parameter $type');
|
| + throw new StateError(
|
| + 'Unbound type parameter $type (${originalContext?.location})');
|
| }
|
|
|
| /**
|
|
|