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

Unified Diff: pkg/compiler/lib/src/common/codegen.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/common/backend_api.dart ('k') | pkg/compiler/lib/src/compile_time_constants.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/common/codegen.dart
diff --git a/pkg/compiler/lib/src/common/codegen.dart b/pkg/compiler/lib/src/common/codegen.dart
index 0a9cf75baa23b08839a8e17678c6b9ab3065346a..62b4bb02087b715aa4b4da6bfbd70a841153a18f 100644
--- a/pkg/compiler/lib/src/common/codegen.dart
+++ b/pkg/compiler/lib/src/common/codegen.dart
@@ -14,9 +14,9 @@ import '../elements/elements.dart'
ClassElement,
Element,
FunctionElement,
- LocalFunctionElement;
+ LocalFunctionElement,
+ ResolvedAst;
import '../enqueue.dart' show CodegenEnqueuer;
-import '../resolution/tree_elements.dart' show TreeElements;
import '../universe/use.dart' show DynamicUse, StaticUse, TypeUse;
import '../universe/world_impact.dart'
show WorldImpact, WorldImpactBuilder, WorldImpactVisitor;
@@ -235,7 +235,7 @@ class CodegenWorkItem extends WorkItem {
assert(invariant(
element, compiler.enqueuer.resolution.hasBeenProcessed(element),
message: "$element has not been resolved."));
- assert(invariant(element, element.resolvedAst.elements != null,
+ assert(invariant(element, element.hasResolvedAst,
message: 'Resolution tree is null for $element in codegen work item'));
return new CodegenWorkItem.internal(element, compilationContext);
}
@@ -244,7 +244,7 @@ class CodegenWorkItem extends WorkItem {
AstElement element, ItemCompilationContext compilationContext)
: super(element, compilationContext);
- TreeElements get resolutionTree => element.resolvedAst.elements;
+ ResolvedAst get resolvedAst => element.resolvedAst;
WorldImpact run(Compiler compiler, CodegenEnqueuer world) {
if (world.isProcessed(element)) return const WorldImpact();
« no previous file with comments | « pkg/compiler/lib/src/common/backend_api.dart ('k') | pkg/compiler/lib/src/compile_time_constants.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698