| OLD | NEW |
| 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, 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 file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 import '../common.dart'; | 5 import '../common.dart'; |
| 6 import '../common_elements.dart' show CommonElements; | 6 import '../common_elements.dart' show CommonElements; |
| 7 import '../common/names.dart' show Identifiers, Selectors; | 7 import '../common/names.dart' show Identifiers, Selectors; |
| 8 import '../elements/entities.dart'; | 8 import '../elements/entities.dart'; |
| 9 import '../types/types.dart'; | 9 import '../types/types.dart'; |
| 10 | 10 |
| (...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 188 NOT_APPLICABLE, | 188 NOT_APPLICABLE, |
| 189 OTHER, | 189 OTHER, |
| 190 } | 190 } |
| 191 | 191 |
| 192 /// Interface for determining the form of a `noSuchMethod` implementation. | 192 /// Interface for determining the form of a `noSuchMethod` implementation. |
| 193 abstract class NoSuchMethodResolver { | 193 abstract class NoSuchMethodResolver { |
| 194 /// Computes whether [method] is of the form | 194 /// Computes whether [method] is of the form |
| 195 /// | 195 /// |
| 196 /// noSuchMethod(i) => super.noSuchMethod(i); | 196 /// noSuchMethod(i) => super.noSuchMethod(i); |
| 197 /// | 197 /// |
| 198 bool hasForwardingSyntax(FunctionEntity method); | 198 bool hasForwardingSyntax(covariant FunctionEntity method); |
| 199 | 199 |
| 200 /// Computes whether [method] is of the form | 200 /// Computes whether [method] is of the form |
| 201 /// | 201 /// |
| 202 /// noSuchMethod(i) => throw new Error(); | 202 /// noSuchMethod(i) => throw new Error(); |
| 203 /// | 203 /// |
| 204 bool hasThrowingSyntax(FunctionEntity method); | 204 bool hasThrowingSyntax(covariant FunctionEntity method); |
| 205 | 205 |
| 206 /// Returns the `noSuchMethod` that [method] overrides. | 206 /// Returns the `noSuchMethod` that [method] overrides. |
| 207 FunctionEntity getSuperNoSuchMethod(FunctionEntity method); | 207 FunctionEntity getSuperNoSuchMethod(covariant FunctionEntity method); |
| 208 } | 208 } |
| OLD | NEW |