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

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

Issue 1970703002: Store ResolvedAst on AstElement (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Updated cf. comments. Created 4 years, 7 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.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',
« no previous file with comments | « tests/compiler/dart2js/serialization/helper.dart ('k') | tests/compiler/dart2js/serialization/resolved_ast_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698