Index: pkg/compiler/lib/src/js_backend/backend.dart |
diff --git a/pkg/compiler/lib/src/js_backend/backend.dart b/pkg/compiler/lib/src/js_backend/backend.dart |
index 35f6cb8efe4a2525f5719af4baf444f76d30d8f0..1e964430fe44fdb66637c0fae98c43499826248f 100644 |
--- a/pkg/compiler/lib/src/js_backend/backend.dart |
+++ b/pkg/compiler/lib/src/js_backend/backend.dart |
@@ -2507,6 +2507,19 @@ class JSFrontendAccess implements Frontend { |
} |
@override |
+ bool hasResolvedAst(Element element) { |
+ if (element is SynthesizedCallMethodElementX) { |
+ return true; |
+ } else if (element is ConstructorBodyElementX) { |
+ return true; |
+ } else if (element is FieldElementX) { |
+ return true; |
+ } else { |
+ return resolution.hasResolvedAst(element); |
+ } |
+ } |
+ |
+ @override |
ResolvedAst getResolvedAst(Element element) { |
if (element is SynthesizedCallMethodElementX) { |
return element.resolvedAst; |