| 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 f60514c7574e3a6cb13dd5555ee9be0b139c903b..54b585457373b1c739ceaf3424b6de10557cb29c 100644
|
| --- a/pkg/analyzer/lib/src/summary/resynthesize.dart
|
| +++ b/pkg/analyzer/lib/src/summary/resynthesize.dart
|
| @@ -1521,6 +1521,15 @@ class _UnitResynthesizer {
|
| elementAnnotation.annotationAst = AstTestFactory.annotation2(
|
| typeName, constructorName, constExpr.argumentList)
|
| ..element = constExpr.staticElement;
|
| + } else if (constExpr is PropertyAccess) {
|
| + var target = constExpr.target as Identifier;
|
| + var propertyName = constExpr.propertyName;
|
| + ArgumentList arguments =
|
| + constExpr.getProperty(_ConstExprBuilder.ARGUMENT_LIST);
|
| + elementAnnotation.element = propertyName.staticElement;
|
| + elementAnnotation.annotationAst = AstTestFactory.annotation2(
|
| + target, propertyName, arguments)
|
| + ..element = propertyName.staticElement;
|
| } else {
|
| throw new StateError(
|
| 'Unexpected annotation type: ${constExpr.runtimeType}');
|
|
|