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

Unified Diff: pkg/analyzer/test/src/task/incremental_element_builder_test.dart

Issue 2136703002: Flush InterfaceTypeImpl cached memebers when ClassElement.version is different. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 5 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 | « pkg/analyzer/test/src/dart/element/element_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/test/src/task/incremental_element_builder_test.dart
diff --git a/pkg/analyzer/test/src/task/incremental_element_builder_test.dart b/pkg/analyzer/test/src/task/incremental_element_builder_test.dart
index daf7681d276c71363eee60176d7943ca7471703f..77aff5b9fc91b332cfe618eb75fff2a638ef59df 100644
--- a/pkg/analyzer/test/src/task/incremental_element_builder_test.dart
+++ b/pkg/analyzer/test/src/task/incremental_element_builder_test.dart
@@ -1854,13 +1854,15 @@ class _ClassDeltaHelper {
final String name;
ClassElementDelta delta;
- ClassElement element;
+ ClassElementImpl element;
+ int oldVersion;
List<ClassMember> oldMembers;
List<ClassMember> newMembers;
_ClassDeltaHelper(this.name);
void initNew(CompilationUnit newUnit, CompilationUnitElementDelta unitDelta) {
+ expect(element.version, isNot(oldVersion));
ClassDeclaration newClass = _findClassNode(newUnit, name);
expect(newClass, isNotNull);
newMembers = newClass.members.toList();
@@ -1872,6 +1874,7 @@ class _ClassDeltaHelper {
ClassDeclaration oldClass = _findClassNode(oldUnit, name);
expect(oldClass, isNotNull);
element = oldClass.element;
+ oldVersion = element.version;
oldMembers = oldClass.members.toList();
}
« no previous file with comments | « pkg/analyzer/test/src/dart/element/element_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698