mirror of
https://github.com/dart-lang/sdk
synced 2024-09-16 01:13:04 +00:00
[kernel] Don't emit InvalidExpression on invalid super in binaryexpression
Don't emit invalidexpression on invalid super call --- a correct call will be created later BUG= R=asgerf@google.com Review URL: https://chromereviews.googleplex.com/524077013 .
This commit is contained in:
parent
0b72c538cc
commit
1048f55a29
|
@ -1359,11 +1359,6 @@ class ExpressionBuilder
|
|||
}
|
||||
ast.Expression expression;
|
||||
if (node.leftOperand is SuperExpression) {
|
||||
var method = scope.resolveConcreteMethod(node.staticElement);
|
||||
if (method == null) {
|
||||
// TODO: Invoke super.noSuchMethod.
|
||||
return new ast.InvalidExpression();
|
||||
}
|
||||
scope.addTransformerFlag(TransformerFlag.superCalls);
|
||||
expression = new ast.SuperMethodInvocation(
|
||||
new ast.Name(operator),
|
||||
|
|
Loading…
Reference in a new issue