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

Unified Diff: sdk/lib/_internal/compiler/implementation/inferrer/concrete_types_inferrer.dart

Issue 392873002: Element-model refactoring. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Updated cf. comments. Created 6 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
Index: sdk/lib/_internal/compiler/implementation/inferrer/concrete_types_inferrer.dart
diff --git a/sdk/lib/_internal/compiler/implementation/inferrer/concrete_types_inferrer.dart b/sdk/lib/_internal/compiler/implementation/inferrer/concrete_types_inferrer.dart
index e467e2984634f373eabdd2cc2cefc7703024c74e..1909dfb89c8f8af32fd94e7d1b2f38337929dd73 100644
--- a/sdk/lib/_internal/compiler/implementation/inferrer/concrete_types_inferrer.dart
+++ b/sdk/lib/_internal/compiler/implementation/inferrer/concrete_types_inferrer.dart
@@ -1371,7 +1371,7 @@ class ConcreteTypesInferrer
/**
* Add [reader] to the set of [local]'s readers.
*/
- void addCapturedLocalReader(VariableElement local, FunctionElement reader) {
+ void addCapturedLocalReader(Local local, FunctionElement reader) {
capturedLocalsReaders.putIfAbsent(local, () => new Set<FunctionElement>())
.add(reader);
}
@@ -2266,7 +2266,7 @@ class ConcreteTypesInferrer
final result = currentWorkItem.environment.lookupType(element);
if (result != null) return result;
}
- if (element.isParameter || element.isFieldParameter) {
+ if (element.isParameter || element.isInitializingFormal) {
return inferredParameterTypes[element];
} else if (element.isField) {
return inferredFieldTypes[element];

Powered by Google App Engine
This is Rietveld 408576698