| Index: pkg/analyzer/lib/src/dart/ast/utilities.dart
|
| diff --git a/pkg/analyzer/lib/src/dart/ast/utilities.dart b/pkg/analyzer/lib/src/dart/ast/utilities.dart
|
| index 3628346d3d8b61cf7ac548fc3436349f903effef..edd019603f32021ddf2f7214308be9b25f2a1b21 100644
|
| --- a/pkg/analyzer/lib/src/dart/ast/utilities.dart
|
| +++ b/pkg/analyzer/lib/src/dart/ast/utilities.dart
|
| @@ -778,7 +778,8 @@ class AstCloner implements AstVisitor<AstNode> {
|
|
|
| @override
|
| SimpleIdentifier visitSimpleIdentifier(SimpleIdentifier node) =>
|
| - new SimpleIdentifier(cloneToken(node.token));
|
| + new SimpleIdentifier(cloneToken(node.token),
|
| + isDeclaration: node.inDeclarationContext());
|
|
|
| @override
|
| SimpleStringLiteral visitSimpleStringLiteral(SimpleStringLiteral node) =>
|
| @@ -3433,7 +3434,8 @@ class IncrementalAstCloner implements AstVisitor<AstNode> {
|
| // documentation comments for the parser.
|
| mappedToken = node.token;
|
| }
|
| - SimpleIdentifier copy = new SimpleIdentifier(mappedToken);
|
| + SimpleIdentifier copy = new SimpleIdentifier(mappedToken,
|
| + isDeclaration: node.inDeclarationContext());
|
| copy.auxiliaryElements = node.auxiliaryElements;
|
| copy.propagatedElement = node.propagatedElement;
|
| copy.propagatedType = node.propagatedType;
|
|
|