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 library dart.core._rasta_errors; | 4 library dart.core._rasta_errors; |
5 | 5 |
6 // RastaK generates calls to these methods -- all backends must provide them | 6 // RastaK generates calls to these methods -- all backends must provide them |
7 // in their patch for "dart:core". | 7 // in their patch for "dart:core". |
8 // | 8 // |
9 // In the future, we could have a single `rasta_errors.dart` for all backends to | 9 // In the future, we could have a single `rasta_errors.dart` for all backends to |
10 // ensure consistent error messages across all backends. | 10 // ensure consistent error messages across all backends. |
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
177 List arguments, | 177 List arguments, |
178 Map<Symbol, dynamic> namedArguments, | 178 Map<Symbol, dynamic> namedArguments, |
179 List existingArgumentNames) { | 179 List existingArgumentNames) { |
180 return new NoSuchMethodError(receiver, methodName, arguments, namedArguments, | 180 return new NoSuchMethodError(receiver, methodName, arguments, namedArguments, |
181 existingArgumentNames); | 181 existingArgumentNames); |
182 } | 182 } |
183 | 183 |
184 _malformedTypeError(String errorMessage) { | 184 _malformedTypeError(String errorMessage) { |
185 return new _TypeError._create(null, null, null, errorMessage); | 185 return new _TypeError._create(null, null, null, errorMessage); |
186 } | 186 } |
| 187 |
| 188 _fallThroughError() { |
| 189 return new FallThroughError(); |
| 190 } |
OLD | NEW |