Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(715)

Unified Diff: pkg/analyzer/lib/src/dart/element/ast_provider.dart

Issue 2969793002: Clean up AstProvider hierarchy (Closed)
Patch Set: Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: pkg/analyzer/lib/src/dart/element/ast_provider.dart
diff --git a/pkg/analyzer/lib/src/dart/element/ast_provider.dart b/pkg/analyzer/lib/src/dart/element/ast_provider.dart
index 312a057189f2b1ef051f89c154cc4bccdd359670..ba94d535b4f8eb254e2b9fdabc67d31527c2ba34 100644
--- a/pkg/analyzer/lib/src/dart/element/ast_provider.dart
+++ b/pkg/analyzer/lib/src/dart/element/ast_provider.dart
@@ -6,6 +6,7 @@ import 'dart:async';
import 'package:analyzer/dart/ast/ast.dart';
import 'package:analyzer/dart/element/element.dart';
+import 'package:analyzer/src/dart/analysis/driver.dart';
/**
* Provider for resolved and unresolved [CompilationUnit]s that contain, or
@@ -13,6 +14,11 @@ import 'package:analyzer/dart/element/element.dart';
*/
abstract class AstProvider {
/**
+ * Return the driver that is used to provide ASTs.
+ */
+ AnalysisDriver get driver;
+
+ /**
* Completes with the [SimpleIdentifier] that declares the [element]. The
* enclosing unit is only parsed, but not resolved. Completes with `null` if
* the [element] is synthetic, or the file where it is declared cannot be

Powered by Google App Engine
This is Rietveld 408576698