commit | 83a248056e9a49657f24dbbcaeb5da0c0e2fb554 | [log] [tgz] |
---|---|---|
author | Konstantin Shcheglov <scheglov@google.com> | Sun Jul 11 21:42:52 2021 +0000 |
committer | commit-bot@chromium.org <commit-bot@chromium.org> | Sun Jul 11 21:42:52 2021 +0000 |
tree | 9b3b684e4f06b6eae6ff5c31b70d9d1781734449 | |
parent | a00c5c29da1ff24a13cbeb608f90357861e23922 [diff] |
Don't clear library context when nothing to do. This is the first step, the next step is to keep some libraries even when there is a change, but the changed file does not affect these libraries. Change-Id: I3b1388be7733f3725ca632b4a67909393d893915 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/206442 Reviewed-by: Brian Wilkerson <brianwilkerson@google.com> Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
diff --git a/pkg/analyzer/lib/src/dart/analysis/driver.dart b/pkg/analyzer/lib/src/dart/analysis/driver.dart index 79bc69f..f275425 100644 --- a/pkg/analyzer/lib/src/dart/analysis/driver.dart +++ b/pkg/analyzer/lib/src/dart/analysis/driver.dart
@@ -463,7 +463,6 @@ _unitElementRequestedParts.isNotEmpty) { return AnalysisDriverPriority.general; } - clearLibraryContext(); return AnalysisDriverPriority.nothing; }