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

Unified Diff: pkg/compiler/lib/src/inferrer/builder.dart

Issue 2981613002: Parameterize TypeSystem by its node kind (Closed)
Patch Set: Updated cf. comments Created 3 years, 5 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 | « no previous file | pkg/compiler/lib/src/inferrer/builder_kernel.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/inferrer/builder.dart
diff --git a/pkg/compiler/lib/src/inferrer/builder.dart b/pkg/compiler/lib/src/inferrer/builder.dart
index 513897d973e080b7183a86674a8b793925de6ae1..b5099c31f5c042712d665a978dd46474f1156551 100644
--- a/pkg/compiler/lib/src/inferrer/builder.dart
+++ b/pkg/compiler/lib/src/inferrer/builder.dart
@@ -58,7 +58,7 @@ class ElementGraphBuilder extends ast.Visitor<TypeInformation>
final Compiler compiler;
final MemberElement analyzedElement;
final ResolvedAst resolvedAst;
- final TypeSystem types;
+ final TypeSystem<ast.Node> types;
final Map<JumpTarget, List<LocalsHandler>> breaksFor =
new Map<JumpTarget, List<LocalsHandler>>();
final Map<JumpTarget, List<LocalsHandler>> continuesFor =
@@ -1165,7 +1165,7 @@ class ElementGraphBuilder extends ast.Visitor<TypeInformation>
for (ast.Node element in node.elements.nodes) {
TypeInformation type = visit(element);
elementType = elementType == null
- ? types.allocatePhi(null, null, type)
+ ? types.allocatePhi(null, null, type, isTry: false)
: types.addPhiInput(null, elementType, type);
length++;
}
« no previous file with comments | « no previous file | pkg/compiler/lib/src/inferrer/builder_kernel.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698