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

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

Issue 2256623005: We need a CompilationUnit with element.library set. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Use RESOLVED_UNIT_RESULTS. Created 4 years, 4 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
« no previous file with comments | « no previous file | pkg/analyzer/test/src/context/context_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/lib/src/context/context.dart
diff --git a/pkg/analyzer/lib/src/context/context.dart b/pkg/analyzer/lib/src/context/context.dart
index 6d861b5df45b482ca35294202f4ca16aad840c48..22ac5e57927c2a9572a9f9946c448dbf14a3e678 100644
--- a/pkg/analyzer/lib/src/context/context.dart
+++ b/pkg/analyzer/lib/src/context/context.dart
@@ -1871,6 +1871,7 @@ class AnalysisContextImpl implements InternalAnalysisContext {
CacheEntry unitEntry =
getCacheEntry(new LibrarySpecificUnit(librarySource, source));
CompilationUnit oldUnit = RESOLVED_UNIT_RESULTS
+ .skipWhile((result) => result != RESOLVED_UNIT2)
.map(unitEntry.getValue)
.firstWhere((unit) => unit != null, orElse: () => null);
// If we have the old unit, we can try to update it.
« no previous file with comments | « no previous file | pkg/analyzer/test/src/context/context_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698