Index: tests/compiler/dart2js/serialization/model_test.dart |
diff --git a/tests/compiler/dart2js/serialization/model_test.dart b/tests/compiler/dart2js/serialization/model_test.dart |
index e8596bbd67ab029abb275f4f48e9c2b927598ca6..9da9f8df0bd5e60fd4e972953dfc08ab05ebf414 100644 |
--- a/tests/compiler/dart2js/serialization/model_test.dart |
+++ b/tests/compiler/dart2js/serialization/model_test.dart |
@@ -138,12 +138,14 @@ void checkElements( |
if (element1.isFunction || |
element1.isConstructor || |
(element1.isField && element1.isInstanceMember)) { |
+ AstElement astElement1 = element1; |
+ AstElement astElement2 = element2; |
ClosureClassMap closureData1 = |
compiler1.closureToClassMapper.computeClosureToClassMapping( |
- compiler1.backend.frontend.getResolvedAst(element1.declaration)); |
+ astElement1.resolvedAst); |
ClosureClassMap closureData2 = |
compiler2.closureToClassMapper.computeClosureToClassMapping( |
- compiler2.backend.frontend.getResolvedAst(element2.declaration)); |
+ astElement2.resolvedAst); |
checkElementIdentities(closureData1, closureData2, |
'$element1.closureElement', |