anchor.diff:  
   Future<ElementDeclarationResult> _resolvedClassResult(Element element) async {
     var libraryElement = element.library;
  +  // We are intentionally using this until we are migrated by the analyzer team.
  +  // ignore: deprecated_member_use
     var libraryResult = await ResolvedLibraryResultImpl.tmp(libraryElement);
     if (libraryResult.state == ResultState.NOT_A_FILE) {
       // We don't have access to source information in summarized libraries,
  
positive.code: import 'package:analyzer/analyzer.dart';
  import 'package:analyzer/dart/analysis/results.dart';
  import 'package:analyzer/dart/element/element.dart';
  import 'package:analyzer/error/error.dart';
  import 'package:analyzer/src/dart/analysis/results.dart';
  
negative.code: }
  
  class AsyncBuildError extends BuildError {
    AsyncBuildError([String message]) : super(message);
  
    Future<BuildError> resolve() => Future.value(this);
  }
  
  