| 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 695 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 706 | 706 |
| 707 static const MessageKind CLASS_NAME_EXPECTED = const MessageKind( | 707 static const MessageKind CLASS_NAME_EXPECTED = const MessageKind( |
| 708 "Error: Class name expected."); | 708 "Error: Class name expected."); |
| 709 | 709 |
| 710 static const MessageKind CANNOT_EXTEND = const MessageKind( | 710 static const MessageKind CANNOT_EXTEND = const MessageKind( |
| 711 "Error: '#{type}' cannot be extended."); | 711 "Error: '#{type}' cannot be extended."); |
| 712 | 712 |
| 713 static const MessageKind CANNOT_IMPLEMENT = const MessageKind( | 713 static const MessageKind CANNOT_IMPLEMENT = const MessageKind( |
| 714 "Error: '#{type}' cannot be implemented."); | 714 "Error: '#{type}' cannot be implemented."); |
| 715 | 715 |
| 716 static const MessageKind CANNOT_EXTEND_MALFORMED = const MessageKind( |
| 717 "Error: A class can't extend a malformed type.", |
| 718 howToFix: "Try correcting the malformed type annotation or removing the " |
| 719 "'extends' clause.", |
| 720 examples: const [""" |
| 721 class A extends Malformed {} |
| 722 main() => new A();"""]); |
| 723 |
| 724 static const MessageKind CANNOT_IMPLEMENT_MALFORMED = const MessageKind( |
| 725 "Error: A class can't implement a malformed type.", |
| 726 howToFix: "Try correcting the malformed type annotation or removing the " |
| 727 "type from the 'implements' clause.", |
| 728 examples: const [""" |
| 729 class A implements Malformed {} |
| 730 main() => new A();"""]); |
| 731 |
| 732 static const MessageKind CANNOT_MIXIN_MALFORMED = const MessageKind( |
| 733 "Error: A class can't mixin a malformed type.", |
| 734 howToFix: "Try correcting the malformed type annotation or removing the " |
| 735 "type from the 'with' clause.", |
| 736 examples: const [""" |
| 737 class A extends Object with Malformed {} |
| 738 main() => new A();"""]); |
| 739 |
| 716 static const MessageKind CANNOT_MIXIN = const MessageKind( | 740 static const MessageKind CANNOT_MIXIN = const MessageKind( |
| 717 "Error: The type '#{type}' can't be mixed in.", | 741 "Error: The type '#{type}' can't be mixed in.", |
| 718 howToFix: "Try removing '#{type}' from the 'with' clause.", | 742 howToFix: "Try removing '#{type}' from the 'with' clause.", |
| 719 examples: const [""" | 743 examples: const [""" |
| 720 class C extends Object with String {} | 744 class C extends Object with String {} |
| 721 | 745 |
| 722 main() => new C(); | 746 main() => new C(); |
| 723 """, """ | 747 """, """ |
| 724 typedef C = Object with String; | 748 typedef C = Object with String; |
| 725 | 749 |
| (...skipping 720 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1446 | 1470 |
| 1447 class CompileTimeConstantError extends Diagnostic { | 1471 class CompileTimeConstantError extends Diagnostic { |
| 1448 CompileTimeConstantError(MessageKind kind, Map arguments, bool terse) | 1472 CompileTimeConstantError(MessageKind kind, Map arguments, bool terse) |
| 1449 : super(kind, arguments, terse); | 1473 : super(kind, arguments, terse); |
| 1450 } | 1474 } |
| 1451 | 1475 |
| 1452 class CompilationError extends Diagnostic { | 1476 class CompilationError extends Diagnostic { |
| 1453 CompilationError(MessageKind kind, Map arguments, bool terse) | 1477 CompilationError(MessageKind kind, Map arguments, bool terse) |
| 1454 : super(kind, arguments, terse); | 1478 : super(kind, arguments, terse); |
| 1455 } | 1479 } |
| OLD | NEW |