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

Unified Diff: tests/compiler/dart2js/serialization/model_test_helper.dart

Issue 2814663002: Use ClassEntity in ClassHierarchyNode (Closed)
Patch Set: Created 3 years, 8 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: tests/compiler/dart2js/serialization/model_test_helper.dart
diff --git a/tests/compiler/dart2js/serialization/model_test_helper.dart b/tests/compiler/dart2js/serialization/model_test_helper.dart
index 00fe7490ade517ab5f75ef86235895f4c03125b5..b875a7345f19234621cb7c9783b1a5f7c2e7a441 100644
--- a/tests/compiler/dart2js/serialization/model_test_helper.dart
+++ b/tests/compiler/dart2js/serialization/model_test_helper.dart
@@ -318,13 +318,15 @@ void checkClassHierarchyNodes(
if (verbose) {
print('Checking $node1 vs $node2');
}
- Expect.isTrue(areElementsEquivalent(node1.cls, node2.cls),
- "Element identity mismatch for ${node1.cls} vs ${node2.cls}.");
+ ClassElement cls1 = node1.cls;
+ ClassElement cls2 = node2.cls;
+ Expect.isTrue(areElementsEquivalent(cls1, cls2),
+ "Element identity mismatch for ${cls1} vs ${cls2}.");
Expect.equals(
node1.isDirectlyInstantiated,
node2.isDirectlyInstantiated,
"Value mismatch for 'isDirectlyInstantiated' "
- "for ${node1.cls} vs ${node2.cls}.");
+ "for ${cls1} vs ${cls2}.");
Expect.equals(
node1.isIndirectlyInstantiated,
node2.isIndirectlyInstantiated,
@@ -335,7 +337,9 @@ void checkClassHierarchyNodes(
for (ClassHierarchyNode child in node1.directSubclasses) {
bool found = false;
for (ClassHierarchyNode other in node2.directSubclasses) {
- if (areElementsEquivalent(child.cls, other.cls)) {
+ ClassElement child1 = child.cls;
+ ClassElement child2 = other.cls;
+ if (areElementsEquivalent(child1, child2)) {
checkClassHierarchyNodes(closedWorld1, closedWorld2, child, other,
verbose: verbose);
found = true;
« pkg/compiler/lib/src/universe/class_set.dart ('K') | « pkg/compiler/lib/src/world.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698