OLD | NEW |
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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 @patch | 5 @patch |
6 class Error { | 6 class Error { |
7 @patch | 7 @patch |
8 static String _objectToString(Object object) { | 8 static String _objectToString(Object object) { |
9 return Object._toString(object); | 9 return Object._toString(object); |
10 } | 10 } |
(...skipping 412 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
423 /// | 423 /// |
424 /// Note: in strong mode, this is a compile-time error and this class becomes | 424 /// Note: in strong mode, this is a compile-time error and this class becomes |
425 /// obsolete. | 425 /// obsolete. |
426 class _DuplicatedFieldInitializerError extends Error { | 426 class _DuplicatedFieldInitializerError extends Error { |
427 final String _name; | 427 final String _name; |
428 | 428 |
429 _DuplicatedFieldInitializerError(this._name); | 429 _DuplicatedFieldInitializerError(this._name); |
430 | 430 |
431 toString() => "Error: field '$_name' is already initialized."; | 431 toString() => "Error: field '$_name' is already initialized."; |
432 } | 432 } |
| 433 |
| 434 @patch |
| 435 class _ConstantExpressionError { |
| 436 @patch |
| 437 _throw(error) => throw error; |
| 438 } |
OLD | NEW |