Index: pkg/compiler/lib/src/typechecker.dart |
diff --git a/pkg/compiler/lib/src/typechecker.dart b/pkg/compiler/lib/src/typechecker.dart |
index b7fa5de07f72431bfc5fe075cc7694276c91329e..85710b11d3da5cbf9d040e3dd29402925f1cfc42 100644 |
--- a/pkg/compiler/lib/src/typechecker.dart |
+++ b/pkg/compiler/lib/src/typechecker.dart |
@@ -681,12 +681,7 @@ class TypeCheckerVisitor extends Visitor<DartType> { |
assert(invariant(node, element != null, |
message: 'Missing element for identifier')); |
assert(invariant( |
- node, |
- element.isVariable || |
- element.isParameter || |
- element.isField || |
- (element.isInitializingFormal && |
- compiler.options.enableInitializingFormalAccess), |
+ node, element.isVariable || element.isParameter || element.isField, |
message: 'Unexpected context element ${element}')); |
return element.computeType(resolution); |
} |
@@ -767,9 +762,7 @@ class TypeCheckerVisitor extends Visitor<DartType> { |
return access; |
} |
if (receiverElement != null && |
- (receiverElement.isVariable || receiverElement.isParameter || |
- (receiverElement.isInitializingFormal && |
- compiler.options.enableInitializingFormalAccess))) { |
+ (receiverElement.isVariable || receiverElement.isParameter)) { |
Link<TypePromotion> typePromotions = typePromotionsMap[receiverElement]; |
if (typePromotions != null) { |
while (!typePromotions.isEmpty) { |
@@ -1085,9 +1078,7 @@ class TypeCheckerVisitor extends Visitor<DartType> { |
} |
ElementAccess createPromotedAccess(Element element) { |
- if (element.isVariable || element.isParameter || |
- (element.isInitializingFormal && |
- compiler.options.enableInitializingFormalAccess)) { |
+ if (element.isVariable || element.isParameter) { |
TypePromotion typePromotion = getKnownTypePromotion(element); |
if (typePromotion != null) { |
return new PromotedAccess(element, typePromotion.type); |
@@ -1222,11 +1213,7 @@ class TypeCheckerVisitor extends Visitor<DartType> { |
} |
} |
- if (variable != null && |
- (variable.isVariable || |
- variable.isParameter || |
- (variable.isInitializingFormal && |
- compiler.options.enableInitializingFormalAccess))) { |
+ if (variable != null && (variable.isVariable || variable.isParameter)) { |
DartType knownType = getKnownType(variable); |
if (!knownType.isDynamic) { |
DartType shownType = elements.getType(node.arguments.head); |