| Index: pkg/analyzer/test/generated/utilities_test.dart
|
| diff --git a/pkg/analyzer/test/generated/utilities_test.dart b/pkg/analyzer/test/generated/utilities_test.dart
|
| index 344612bf6ea46c2fba1aa02e90fd4b2df699b9f7..a4de8c00b94aa0cc535d0f6cd2777ee34179652e 100644
|
| --- a/pkg/analyzer/test/generated/utilities_test.dart
|
| +++ b/pkg/analyzer/test/generated/utilities_test.dart
|
| @@ -59,6 +59,12 @@ class AstCloneComparator extends AstComparator {
|
| fail('Failed to copy token: ${first.lexeme} (${first.offset})');
|
| return false;
|
| }
|
| + if (first is TokenWithComment) {
|
| + CommentToken comment = first.precedingComments;
|
| + if (comment.parent != first) {
|
| + fail('Failed to link the comment "$comment" with the token "$first".');
|
| + }
|
| + }
|
| return super.isEqualTokens(first, second);
|
| }
|
| }
|
| @@ -77,6 +83,13 @@ class AstClonerTest extends EngineTestCase {
|
| _assertCloneUnitMember('@A.c() main() {}');
|
| }
|
|
|
| + void test_visitAnnotation_withComment() {
|
| + CompilationUnitMember clazz =
|
| + _parseUnitMember('/** comment */ @deprecated class A {}');
|
| + Annotation annotation = clazz.metadata.single;
|
| + _assertClone(annotation);
|
| + }
|
| +
|
| void test_visitArgumentList() {
|
| _assertCloneExpression('m(a, b)');
|
| }
|
|
|