| OLD | NEW |
| 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, 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 part of dart2js; | 5 part of dart2js; |
| 6 | 6 |
| 7 const DONT_KNOW_HOW_TO_FIX = ""; | 7 const DONT_KNOW_HOW_TO_FIX = ""; |
| 8 | 8 |
| 9 /** | 9 /** |
| 10 * The messages in this file should meet the following guide lines: | 10 * The messages in this file should meet the following guide lines: |
| (...skipping 682 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 693 examples: const [""" | 693 examples: const [""" |
| 694 typedef G F(); // The return type 'G' is a self-reference through typedef 'G'. | 694 typedef G F(); // The return type 'G' is a self-reference through typedef 'G'. |
| 695 typedef F G(); // The return type 'F' is a self-reference through typedef 'F'. | 695 typedef F G(); // The return type 'F' is a self-reference through typedef 'F'. |
| 696 main() { F f = null; }""", | 696 main() { F f = null; }""", |
| 697 """ | 697 """ |
| 698 typedef G F(); // The return type 'G' creates a self-reference. | 698 typedef G F(); // The return type 'G' creates a self-reference. |
| 699 typedef H G(); // The return type 'H' creates a self-reference. | 699 typedef H G(); // The return type 'H' creates a self-reference. |
| 700 typedef H(F f); // The argument type 'F' creates a self-reference. | 700 typedef H(F f); // The argument type 'F' creates a self-reference. |
| 701 main() { F f = null; }"""]); | 701 main() { F f = null; }"""]); |
| 702 | 702 |
| 703 static const CYCLIC_TYPEDEF_TYPEVAR = const MessageKind( | |
| 704 "Internal Error: Recursive type variable bounds are not " | |
| 705 "supported on typedefs."); | |
| 706 | |
| 707 static const MessageKind CLASS_NAME_EXPECTED = const MessageKind( | 703 static const MessageKind CLASS_NAME_EXPECTED = const MessageKind( |
| 708 "Error: Class name expected."); | 704 "Error: Class name expected."); |
| 709 | 705 |
| 710 static const MessageKind CANNOT_EXTEND = const MessageKind( | 706 static const MessageKind CANNOT_EXTEND = const MessageKind( |
| 711 "Error: '#{type}' cannot be extended."); | 707 "Error: '#{type}' cannot be extended."); |
| 712 | 708 |
| 713 static const MessageKind CANNOT_IMPLEMENT = const MessageKind( | 709 static const MessageKind CANNOT_IMPLEMENT = const MessageKind( |
| 714 "Error: '#{type}' cannot be implemented."); | 710 "Error: '#{type}' cannot be implemented."); |
| 715 | 711 |
| 716 static const MessageKind CANNOT_EXTEND_MALFORMED = const MessageKind( | 712 static const MessageKind CANNOT_EXTEND_MALFORMED = const MessageKind( |
| (...skipping 753 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1470 | 1466 |
| 1471 class CompileTimeConstantError extends Diagnostic { | 1467 class CompileTimeConstantError extends Diagnostic { |
| 1472 CompileTimeConstantError(MessageKind kind, Map arguments, bool terse) | 1468 CompileTimeConstantError(MessageKind kind, Map arguments, bool terse) |
| 1473 : super(kind, arguments, terse); | 1469 : super(kind, arguments, terse); |
| 1474 } | 1470 } |
| 1475 | 1471 |
| 1476 class CompilationError extends Diagnostic { | 1472 class CompilationError extends Diagnostic { |
| 1477 CompilationError(MessageKind kind, Map arguments, bool terse) | 1473 CompilationError(MessageKind kind, Map arguments, bool terse) |
| 1478 : super(kind, arguments, terse); | 1474 : super(kind, arguments, terse); |
| 1479 } | 1475 } |
| OLD | NEW |