anchor.diff:    @override
     List<ElementAnnotation> get metadata {
       if (_unlinkedClass != null) {
  -      return _metadata ??= _unlinkedClass.annotations
  -          .map((a) =>
  -              enclosingUnit.resynthesizerContext.buildAnnotation(this, a))
  -          .toList();
  +      return _metadata ??=
  +          _buildAnnotations(enclosingUnit, _unlinkedClass.annotations);
       }
       return super.metadata;
     }
  
positive.code:   }
  
    /**
     *  Updates cached values after an input changed.
     *
     *  Throws [FrozenHashCodeException] if not allowed.
  
negative.code:   @override
    List<ElementAnnotation> get metadata {
      if (_unlinkedExportNonPublic != null) {
        return _metadata ??= _buildAnnotations(
            library.definingCompilationUnit as CompilationUnitElementImpl,
            _unlinkedExportNonPublic.annotations);
      }
      return super.metadata;
    }
  