| 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/resolution_types.dart" show DartType; | 7 import "../elements/resolution_types.dart" show ResolutionDartType; |
| 8 import "../elements/elements.dart" show Element, ErroneousElement; | 8 import "../elements/elements.dart" show Element, ErroneousElement; |
| 9 import "../resolution/operators.dart" | 9 import "../resolution/operators.dart" |
| 10 show AssignmentOperator, BinaryOperator, IncDecOperator, UnaryOperator; | 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 |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 93 } | 93 } |
| 94 | 94 |
| 95 ir.Expression errorInvalidUnary( | 95 ir.Expression errorInvalidUnary( |
| 96 Send node, UnaryOperator operator, ErroneousElement error, _) { | 96 Send node, UnaryOperator operator, ErroneousElement error, _) { |
| 97 return handleError(node); | 97 return handleError(node); |
| 98 } | 98 } |
| 99 | 99 |
| 100 ir.Expression errorNonConstantConstructorInvoke( | 100 ir.Expression errorNonConstantConstructorInvoke( |
| 101 NewExpression node, | 101 NewExpression node, |
| 102 Element element, | 102 Element element, |
| 103 DartType type, | 103 ResolutionDartType type, |
| 104 NodeList arguments, | 104 NodeList arguments, |
| 105 CallStructure callStructure, | 105 CallStructure callStructure, |
| 106 _) { | 106 _) { |
| 107 return handleError(node); | 107 return handleError(node); |
| 108 } | 108 } |
| 109 | 109 |
| 110 ir.Expression errorUndefinedBinaryExpression( | 110 ir.Expression errorUndefinedBinaryExpression( |
| 111 Send node, Node left, Operator operator, Node right, _) { | 111 Send node, Node left, Operator operator, Node right, _) { |
| 112 return handleError(node); | 112 return handleError(node); |
| 113 } | 113 } |
| (...skipping 16 matching lines...) Expand all 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 |