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

Unified Diff: pkg/compiler/lib/src/js_backend/backend.dart

Issue 1932183003: Handle deserialized compilation of closures (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 4 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: 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;

Powered by Google App Engine
This is Rietveld 408576698