| Index: pkg/analyzer/lib/src/summary/resynthesize.dart
|
| diff --git a/pkg/analyzer/lib/src/summary/resynthesize.dart b/pkg/analyzer/lib/src/summary/resynthesize.dart
|
| index 94f50cd7ab0f36fb614f4cdee57862eaacb97c4a..7075945a53e42d525b27c6102acdb6ed9c5c22e2 100644
|
| --- a/pkg/analyzer/lib/src/summary/resynthesize.dart
|
| +++ b/pkg/analyzer/lib/src/summary/resynthesize.dart
|
| @@ -1602,36 +1602,38 @@ class _LibraryResynthesizer {
|
| case ReferenceKind.classOrEnum:
|
| element = new ClassElementHandle(summaryResynthesizer, location);
|
| break;
|
| - case ReferenceKind.typedef:
|
| - element = new FunctionTypeAliasElementHandle(
|
| - summaryResynthesizer, location);
|
| - break;
|
| - case ReferenceKind.topLevelPropertyAccessor:
|
| - element = new PropertyAccessorElementHandle(
|
| - summaryResynthesizer, location);
|
| - break;
|
| case ReferenceKind.constructor:
|
| assert(location.components.length == 4);
|
| element =
|
| new ConstructorElementHandle(summaryResynthesizer, location);
|
| numTypeParameters = enclosingInfo.numTypeParameters;
|
| break;
|
| + case ReferenceKind.length:
|
| + element = _buildStringLengthPropertyAccessorElement();
|
| + break;
|
| + case ReferenceKind.method:
|
| + assert(location.components.length == 4);
|
| + element = new MethodElementHandle(summaryResynthesizer, location);
|
| + break;
|
| case ReferenceKind.propertyAccessor:
|
| assert(location.components.length == 4);
|
| element = new PropertyAccessorElementHandle(
|
| summaryResynthesizer, location);
|
| break;
|
| - case ReferenceKind.method:
|
| - assert(location.components.length == 4);
|
| - element = new MethodElementHandle(summaryResynthesizer, location);
|
| + case ReferenceKind.topLevelFunction:
|
| + assert(location.components.length == 3);
|
| + element = new FunctionElementHandle(summaryResynthesizer, location);
|
| break;
|
| - case ReferenceKind.length:
|
| - element = _buildStringLengthPropertyAccessorElement();
|
| + case ReferenceKind.topLevelPropertyAccessor:
|
| + element = new PropertyAccessorElementHandle(
|
| + summaryResynthesizer, location);
|
| + break;
|
| + case ReferenceKind.typedef:
|
| + element = new FunctionTypeAliasElementHandle(
|
| + summaryResynthesizer, location);
|
| break;
|
| - default:
|
| - // This is an element that doesn't (yet) need to be referred to
|
| - // directly, so don't bother populating an element for it.
|
| - // TODO(paulberry): add support for more kinds, as needed.
|
| + case ReferenceKind.prefix:
|
| + case ReferenceKind.unresolved:
|
| break;
|
| }
|
| }
|
|
|