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

Unified Diff: pkg/analyzer/lib/src/task/dart.dart

Issue 1657463002: Element no longer implements AnalysisTarget Base URL: git@github.com:dart-lang/sdk.git@fixhash
Patch Set: Created 4 years, 11 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/task/dart.dart
diff --git a/pkg/analyzer/lib/src/task/dart.dart b/pkg/analyzer/lib/src/task/dart.dart
index 2c99cd2dbf85646c7566e87018391d02ab4f8fde..cbcd585363f14ea385f56458b8fbdf98c42a5fe3 100644
--- a/pkg/analyzer/lib/src/task/dart.dart
+++ b/pkg/analyzer/lib/src/task/dart.dart
@@ -1824,7 +1824,8 @@ class ComputeConstantDependenciesTask extends ConstantEvaluationAnalysisTask {
//
Source librarySource;
if (target is Element) {
- CompilationUnitElementImpl unit = target
+ Element elt = target as Element;
Brian Wilkerson 2016/02/01 15:43:20 This shouldn't be necessary because of type propag
+ CompilationUnitElementImpl unit = elt
.getAncestor((Element element) => element is CompilationUnitElement);
librarySource = unit.librarySource;
} else if (target is ConstantEvaluationTarget_Annotation) {

Powered by Google App Engine
This is Rietveld 408576698