Remove special case for assignment to parenthesized expressions.
We can now handle this case more generally. Change-Id: I6ad7ba36e44af730a5a96a158e85f11b31c52d28 Reviewed-on: https://dart-review.googlesource.com/66418 Reviewed-by: Brian Wilkerson <brianwilkerson@google.com> Reviewed-by: Konstantin Shcheglov <scheglov@google.com> Commit-Queue: Paul Berry <paulberry@google.com>
This commit is contained in:
committed by
commit-bot@chromium.org
parent
c9b197017c
commit
32fd7b15e4
@@ -120,6 +120,8 @@ class ResolutionApplier extends GeneralizingAstVisitor {
|
||||
var data = _get(entity);
|
||||
node.staticElement = _translateAuxiliaryReference(data.combiner);
|
||||
node.staticType = _translateType(data.inferredType);
|
||||
} else {
|
||||
node.staticType = _translateType(const kernel.DynamicType());
|
||||
}
|
||||
}
|
||||
|
||||
@@ -547,6 +549,8 @@ class ResolutionApplier extends GeneralizingAstVisitor {
|
||||
var data = _get(entity);
|
||||
node.staticElement = _translateAuxiliaryReference(data.combiner);
|
||||
node.staticType = _translateType(data.inferredType);
|
||||
} else {
|
||||
node.staticType = _translateType(const kernel.DynamicType());
|
||||
}
|
||||
}
|
||||
|
||||
@@ -569,6 +573,8 @@ class ResolutionApplier extends GeneralizingAstVisitor {
|
||||
var data = _get(entity);
|
||||
node.staticElement = _translateAuxiliaryReference(data.combiner);
|
||||
node.staticType = _translateType(data.inferredType);
|
||||
} else {
|
||||
node.staticType = _translateType(const kernel.DynamicType());
|
||||
}
|
||||
} else if (tokenType == TokenType.BANG) {
|
||||
// !boolExpression;
|
||||
@@ -735,8 +741,6 @@ class ResolutionApplier extends GeneralizingAstVisitor {
|
||||
return leftHandSide.propertyName;
|
||||
} else if (leftHandSide is IndexExpressionImpl) {
|
||||
return leftHandSide.leftBracket;
|
||||
} else if (leftHandSide is ParenthesizedExpression) {
|
||||
return leftHandSide.rightParenthesis;
|
||||
} else {
|
||||
return null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user