Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(222)

Side by Side Diff: runtime/lib/errors_patch.dart

Issue 2931423002: Prepare for improved error recovery from compile-time errors. (Closed)
Patch Set: Rebased on 11f82b12d2fb4f2c323cbc5a25de9835cc8e5031 Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « pkg/kernel/lib/target/targets.dart ('k') | sdk/lib/_internal/js_runtime/lib/core_patch.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « pkg/kernel/lib/target/targets.dart ('k') | sdk/lib/_internal/js_runtime/lib/core_patch.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698