mirror of
https://github.com/dart-lang/sdk
synced 2024-10-14 14:53:37 +00:00
Issue 53839. Clear cached priority results during _clearLibraryContextAfterException().
Bug: https://github.com/dart-lang/sdk/issues/53839 Change-Id: I7de4e5b518b51239d4bd0251286960e619e6bc6a Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/332747 Reviewed-by: Brian Wilkerson <brianwilkerson@google.com> Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
This commit is contained in:
parent
4fa5cadb36
commit
8d51998088
|
@ -86,7 +86,7 @@ import 'package:analyzer/src/utilities/uri_cache.dart';
|
|||
/// TODO(scheglov) Clean up the list of implicitly analyzed files.
|
||||
class AnalysisDriver implements AnalysisDriverGeneric {
|
||||
/// The version of data format, should be incremented on every format change.
|
||||
static const int DATA_VERSION = 315;
|
||||
static const int DATA_VERSION = 316;
|
||||
|
||||
/// The number of exception contexts allowed to write. Once this field is
|
||||
/// zero, we stop writing any new exception contexts in this process.
|
||||
|
@ -1295,6 +1295,8 @@ class AnalysisDriver implements AnalysisDriverGeneric {
|
|||
/// we will solve the inconsistency while loading / building summaries.
|
||||
void _clearLibraryContextAfterException() {
|
||||
clearLibraryContext();
|
||||
_priorityResults.clear();
|
||||
_resolvedLibraryCache.clear();
|
||||
}
|
||||
|
||||
/// Return the cached or newly computed analysis result of the file with the
|
||||
|
|
Loading…
Reference in a new issue