anchor.diff:  void f() {}
   ''');
   
  -    assertElement2(
  -      findNode.simple('A('),
  -      declaration: import_a.class_('A'),
  -    );
  -
  -    assertElement2(
  -      findNode.annotation('@A'),
  -      declaration: import_a.unnamedConstructor('A'),
  -      isLegacy: true,
  -    );
  +    assertResolvedNodeText(findNode.annotation('@A'), r'''
  +Annotation
  +  atSign: @
  +  name: SimpleIdentifier
  +    token: A
  +    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_class_constructor() async {
  
positive.code: ''');
  
      var annotation = findNode.annotation('@foo');
      assertElement2(
        annotation,
        declaration: findElement.topGet('foo'),
      );
  
      var annotationElement = annotation.elementAnnotation!;
      _assertElementAnnotationValueText(annotationElement, r'''
  
negative.code: void f() {}
  ''');
  
      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
    period: .
    constructorName: SimpleIdentifier
      token: named
      staticElement: ConstructorMember
        base: package:test/a.dart::@class::A::@constructor::named
        isLegacy: true
      staticType: null
    arguments: ArgumentList
      leftParenthesis: (
      arguments
        IntegerLiteral
          literal: 0
          staticType: int*
      rightParenthesis: )
    element: ConstructorMember
      base: package:test/a.dart::@class::A::@constructor::named
      isLegacy: true
  ''');
    }
  
    test_optIn_fromOptOut_prefix_class_getter() async {
  