anchor.diff:  ''');
   
       var annotation = findNode.annotation('@foo');
  -    assertElement2(
  -      annotation,
  -      declaration: findElement.topGet('foo'),
  -    );
  +    assertResolvedNodeText(annotation, r'''
  +Annotation
  +  atSign: @
  +  name: SimpleIdentifier
  +    token: foo
  +    staticElement: self::@getter::foo
  +    staticType: null
  +  element: self::@getter::foo
  +''');
   
       var annotationElement = annotation.elementAnnotation!;
       _assertElementAnnotationValueText(annotationElement, r'''
  
positive.code: void f() {}
  ''');
  
      assertElement2(
        findNode.simple('A.named('),
        declaration: import_a.class_('A'),
      );
  
      assertElement2(
        findNode.annotation('@A'),
        declaration: import_a.constructor('named', of: 'A'),
        isLegacy: true,
      );
  
      _assertElementAnnotationValueText(
          findElement.function('f').metadata[0], r'''
  
negative.code: void f() {}
  ''');
  
      assertResolvedNodeText(findNode.annotation('@A'), r'''
  Annotation
    atSign: @
    name: PrefixedIdentifier
      prefix: SimpleIdentifier
        token: A
        staticElement: package:test/a.dart::@class::A
        staticType: null
      period: .
      identifier: SimpleIdentifier
        token: foo
        staticElement: PropertyAccessorMember
          base: package:test/a.dart::@class::A::@getter::foo
          isLegacy: true
        staticType: null
      staticElement: PropertyAccessorMember
        base: package:test/a.dart::@class::A::@getter::foo
        isLegacy: true
      staticType: null
    element: PropertyAccessorMember
      base: package:test/a.dart::@class::A::@getter::foo
      isLegacy: true
  ''');
  
      _assertElementAnnotationValueText(
          findElement.function('f').metadata[0], r'''
  