Index: tests/compiler/dart2js/serialization/resolved_ast_test.dart |
diff --git a/tests/compiler/dart2js/serialization/resolved_ast_test.dart b/tests/compiler/dart2js/serialization/resolved_ast_test.dart |
index 28fbe79059382f6ed22d9438eb04c8aa514bb09c..d2aa67fe7f921ec64c4a426a7a2a413fabfae25a 100644 |
--- a/tests/compiler/dart2js/serialization/resolved_ast_test.dart |
+++ b/tests/compiler/dart2js/serialization/resolved_ast_test.dart |
@@ -8,6 +8,7 @@ import 'dart:async'; |
import 'package:async_helper/async_helper.dart'; |
import 'package:expect/expect.dart'; |
import 'package:compiler/src/commandline_options.dart'; |
+import 'package:compiler/src/common.dart'; |
import 'package:compiler/src/common/backend_api.dart'; |
import 'package:compiler/src/common/names.dart'; |
import 'package:compiler/src/compiler.dart'; |
@@ -78,9 +79,11 @@ void checkAllResolvedAsts( |
void checkResolvedAsts(Compiler compiler1, Element member1, |
Compiler compiler2, Element member2, |
{bool verbose: false}) { |
+ if (!compiler2.serialization.isDeserialized(member2)) { |
+ return; |
+ } |
ResolvedAst resolvedAst1 = compiler1.resolution.getResolvedAst(member1); |
- ResolvedAst resolvedAst2 = |
- compiler2.serialization.deserializer.getResolvedAst(member2); |
+ ResolvedAst resolvedAst2 = compiler2.serialization.getResolvedAst(member2); |
if (resolvedAst1 == null || resolvedAst2 == null) return; |