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

Unified Diff: pkg/compiler/lib/src/inferrer/inferrer_visitor.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/id_generator.dart ('k') | pkg/compiler/lib/src/inferrer/simple_types_inferrer.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/inferrer/inferrer_visitor.dart
diff --git a/pkg/compiler/lib/src/inferrer/inferrer_visitor.dart b/pkg/compiler/lib/src/inferrer/inferrer_visitor.dart
index 5d4623a7b337c2868e58bb6f4819d2d059c74f58..78ef6bb3c3a206fd60075ff8c4c0bda5471e227a 100644
--- a/pkg/compiler/lib/src/inferrer/inferrer_visitor.dart
+++ b/pkg/compiler/lib/src/inferrer/inferrer_visitor.dart
@@ -705,6 +705,7 @@ abstract class InferrerVisitor<T, E extends MinimalInferrerEngine<T>>
implements SemanticSendVisitor<T, dynamic> {
final Compiler compiler;
final AstElement analyzedElement;
+ final ResolvedAst resolvedAst;
final TypeSystem<T> types;
final E inferrer;
final Map<JumpTarget, List<LocalsHandler<T>>> breaksFor =
@@ -713,7 +714,8 @@ abstract class InferrerVisitor<T, E extends MinimalInferrerEngine<T>>
new Map<JumpTarget, List<LocalsHandler<T>>>();
LocalsHandler<T> locals;
final List<T> cascadeReceiverStack = new List<T>();
- final TreeElements elements;
+
+ TreeElements get elements => resolvedAst.elements;
bool accumulateIsChecks = false;
bool conditionIsSimple = false;
@@ -733,12 +735,11 @@ abstract class InferrerVisitor<T, E extends MinimalInferrerEngine<T>>
}
}
- InferrerVisitor(
- AstElement analyzedElement, this.inferrer, this.types, this.compiler,
+ InferrerVisitor(AstElement analyzedElement, this.resolvedAst, this.inferrer,
+ this.types, this.compiler,
[LocalsHandler<T> handler])
: this.analyzedElement = analyzedElement,
- this.locals = handler,
- this.elements = analyzedElement.resolvedAst.elements {
+ this.locals = handler {
if (handler != null) return;
Node node = analyzedElement.node;
FieldInitializationScope<T> fieldScope =
« no previous file with comments | « pkg/compiler/lib/src/id_generator.dart ('k') | pkg/compiler/lib/src/inferrer/simple_types_inferrer.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698