| OLD | NEW |
| 1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE.md file. | 3 // BSD-style license that can be found in the LICENSE.md file. |
| 4 | 4 |
| 5 import 'package:kernel/ast.dart' as ir; | 5 import 'package:kernel/ast.dart' as ir; |
| 6 | 6 |
| 7 import "../elements/elements.dart" show Element, ErroneousElement; |
| 8 import "../elements/operators.dart" |
| 9 show AssignmentOperator, BinaryOperator, IncDecOperator, UnaryOperator; |
| 7 import "../elements/resolution_types.dart" show ResolutionDartType; | 10 import "../elements/resolution_types.dart" show ResolutionDartType; |
| 8 import "../elements/elements.dart" show Element, ErroneousElement; | |
| 9 import "../resolution/operators.dart" | |
| 10 show AssignmentOperator, BinaryOperator, IncDecOperator, UnaryOperator; | |
| 11 import "../tree/tree.dart" | 11 import "../tree/tree.dart" |
| 12 show Expression, NewExpression, Node, NodeList, Operator, Send, SendSet; | 12 show Expression, NewExpression, Node, NodeList, Operator, Send, SendSet; |
| 13 import "../universe/call_structure.dart" show CallStructure; | 13 import "../universe/call_structure.dart" show CallStructure; |
| 14 import "../universe/selector.dart" show Selector; | 14 import "../universe/selector.dart" show Selector; |
| 15 | 15 |
| 16 abstract class KernelError { | 16 abstract class KernelError { |
| 17 // TODO(ahe): Get rid of this method, each error should be handled according | 17 // TODO(ahe): Get rid of this method, each error should be handled according |
| 18 // to the semantics required by the Dart Language Specification. | 18 // to the semantics required by the Dart Language Specification. |
| 19 ir.Expression handleError(Expression node); | 19 ir.Expression handleError(Expression node); |
| 20 | 20 |
| (...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 130 ir.Expression errorUnresolvedThisConstructorInvoke( | 130 ir.Expression errorUnresolvedThisConstructorInvoke( |
| 131 Send node, Element element, NodeList arguments, Selector selector, _) { | 131 Send node, Element element, NodeList arguments, Selector selector, _) { |
| 132 return handleError(node); | 132 return handleError(node); |
| 133 } | 133 } |
| 134 | 134 |
| 135 ir.Expression errorInvalidIndexSetIfNull( | 135 ir.Expression errorInvalidIndexSetIfNull( |
| 136 SendSet node, ErroneousElement error, Node index, Node rhs, _) { | 136 SendSet node, ErroneousElement error, Node index, Node rhs, _) { |
| 137 return handleError(node); | 137 return handleError(node); |
| 138 } | 138 } |
| 139 } | 139 } |
| OLD | NEW |