anchor.diff:    @override
     List<ElementAnnotation> get metadata {
       if (_unlinkedPart != null) {
  -      CompilationUnitElementImpl definingUnit =
  -          library.definingCompilationUnit as CompilationUnitElementImpl;
  -      return _metadata ??= _unlinkedPart.annotations
  -          .map(
  -              (a) => definingUnit.resynthesizerContext.buildAnnotation(this, a))
  -          .toList();
  +      return _metadata ??= _buildAnnotations(
  +          library.definingCompilationUnit as CompilationUnitElementImpl,
  +          _unlinkedPart.annotations);
       }
       return super.metadata;
     }
  
positive.code:   @override
    List<ElementAnnotation> get metadata {
      if (_unlinkedTypeParam != null) {
        return _metadata ??= _unlinkedTypeParam.annotations
            .map((a) =>
                enclosingUnit.resynthesizerContext.buildAnnotation(this, a))
            .toList();
      }
      return super.metadata;
    }
  
negative.code:   @override
    List<ElementAnnotation> get metadata {
      if (_unlinkedImport != null) {
        return _metadata ??= _buildAnnotations(
            library.definingCompilationUnit as CompilationUnitElementImpl,
            _unlinkedImport.annotations);
      }
      return super.metadata;
    }
  