Index: pkg/analyzer/lib/src/dart/analysis/ast_provider_context.dart |
diff --git a/pkg/analyzer/lib/src/dart/analysis/ast_provider_context.dart b/pkg/analyzer/lib/src/dart/analysis/ast_provider_context.dart |
deleted file mode 100644 |
index b53334eb046ce0f5d783235a9d5c260f82c926c6..0000000000000000000000000000000000000000 |
--- a/pkg/analyzer/lib/src/dart/analysis/ast_provider_context.dart |
+++ /dev/null |
@@ -1,31 +0,0 @@ |
-// Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file |
-// for details. All rights reserved. Use of this source code is governed by a |
-// BSD-style license that can be found in the LICENSE file. |
- |
-import 'dart:async'; |
- |
-import 'package:analyzer/dart/ast/ast.dart'; |
-import 'package:analyzer/dart/element/element.dart'; |
-import 'package:analyzer/src/dart/analysis/ast_provider_driver.dart'; |
-import 'package:analyzer/src/dart/element/ast_provider.dart'; |
-import 'package:analyzer/src/generated/engine.dart'; |
- |
-/** |
- * [AstProvider] implementation for [AnalysisContext]. |
- */ |
-class AstProviderForContext extends AbstractAstProvider { |
- final AnalysisContext context; |
- |
- AstProviderForContext(this.context); |
- |
- @override |
- Future<CompilationUnit> getParsedUnitForElement(Element element) async { |
- return context.parseCompilationUnit(element.source); |
- } |
- |
- @override |
- Future<CompilationUnit> getResolvedUnitForElement(Element element) async { |
- return context.getResolvedCompilationUnit2( |
- element.source, element.librarySource); |
- } |
-} |