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

Unified Diff: pkg/compiler/lib/src/deferred_load.dart

Issue 1881013002: Expand ResolvedAst to handle synthetic constructors. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Updated cf. comments + fix test, cps and compilation units for injected members. 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
« no previous file with comments | « pkg/compiler/lib/src/cps_ir/inline.dart ('k') | pkg/compiler/lib/src/elements/elements.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/deferred_load.dart
diff --git a/pkg/compiler/lib/src/deferred_load.dart b/pkg/compiler/lib/src/deferred_load.dart
index 0d377aa41d10f8fdd4b0a386d0c80a959d420870..b8164aeec900424a2a57763d956f60fcc5501a4b 100644
--- a/pkg/compiler/lib/src/deferred_load.dart
+++ b/pkg/compiler/lib/src/deferred_load.dart
@@ -30,6 +30,7 @@ import 'elements/elements.dart'
LocalFunctionElement,
MetadataAnnotation,
PrefixElement,
+ ResolvedAstKind,
ScopeContainerElement,
TypedefElement;
import 'js_backend/js_backend.dart' show JavaScriptBackend;
@@ -337,6 +338,10 @@ class DeferredLoadTask extends CompilerTask {
}),
IMPACT_USE);
+ if (analyzableElement.resolvedAst.kind != ResolvedAstKind.PARSED) {
+ return;
+ }
+
TreeElements treeElements = analyzableElement.resolvedAst.elements;
assert(treeElements != null);
« no previous file with comments | « pkg/compiler/lib/src/cps_ir/inline.dart ('k') | pkg/compiler/lib/src/elements/elements.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698