anchor.diff:  void f() {}
   ''');
   
  -    assertElement2(
  -      findNode.simple('A('),
  -      declaration: import_a.class_('A'),
  -    );
  -
  -    assertElement2(
  -      findNode.annotation('@a.A'),
  -      declaration: import_a.unnamedConstructor('A'),
  -      isLegacy: true,
  -    );
  +    assertResolvedNodeText(findNode.annotation('@a.A'), r'''
  +Annotation
  +  atSign: @
  +  name: PrefixedIdentifier
  +    prefix: SimpleIdentifier
  +      token: a
  +      staticElement: self::@prefix::a
  +      staticType: null
  +    period: .
  +    identifier: SimpleIdentifier
  +      token: A
  +      staticElement: package:test/a.dart::@class::A
  +      staticType: null
  +    staticElement: package:test/a.dart::@class::A
  +    staticType: null
  +  arguments: ArgumentList
  +    leftParenthesis: (
  +    arguments
  +      IntegerLiteral
  +        literal: 0
  +        staticType: int*
  +    rightParenthesis: )
  +  element: ConstructorMember
  +    base: package:test/a.dart::@class::A::@constructor::•
  +    isLegacy: true
  +''');
     }
   
     test_optIn_fromOptOut_prefix_class_constructor() async {
  
positive.code: void f() {}
  ''');
  
      assertElement2(
        findNode.simple('A('),
        declaration: import_a.class_('A'),
      );
  
      assertElement2(
        findNode.annotation('@A'),
        declaration: import_a.unnamedConstructor('A'),
        isLegacy: true,
      );
    }
  
    test_optIn_fromOptOut_class_constructor() async {
  
negative.code: void f() {}
  ''');
  
      assertResolvedNodeText(findNode.annotation('@foo'), r'''
  Annotation
    atSign: @
    name: SimpleIdentifier
      token: foo
      staticElement: PropertyAccessorMember
        base: package:test/a.dart::@getter::foo
        isLegacy: true
      staticType: null
    element: PropertyAccessorMember
      base: package:test/a.dart::@getter::foo
      isLegacy: true
  ''');
  
      _assertElementAnnotationValueText(
          findElement.function('f').metadata[0], r'''
  