| 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 = "Computer says no!"; | 7 const DONT_KNOW_HOW_TO_FIX = "Computer says no!"; |
| 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 622 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 633 const MessageKind( | 633 const MessageKind( |
| 634 "'case' expression type '#{type}' overrides 'operator =='."); | 634 "'case' expression type '#{type}' overrides 'operator =='."); |
| 635 | 635 |
| 636 static const MessageKind INVALID_ARGUMENT_AFTER_NAMED = const MessageKind( | 636 static const MessageKind INVALID_ARGUMENT_AFTER_NAMED = const MessageKind( |
| 637 "Unnamed argument after named argument."); | 637 "Unnamed argument after named argument."); |
| 638 | 638 |
| 639 static const MessageKind NOT_A_COMPILE_TIME_CONSTANT = const MessageKind( | 639 static const MessageKind NOT_A_COMPILE_TIME_CONSTANT = const MessageKind( |
| 640 "Not a compile-time constant."); | 640 "Not a compile-time constant."); |
| 641 | 641 |
| 642 static const MessageKind DEFERRED_COMPILE_TIME_CONSTANT = const MessageKind( | 642 static const MessageKind DEFERRED_COMPILE_TIME_CONSTANT = const MessageKind( |
| 643 "A Deferred value cannot be used as a compile-time constant."); | 643 "A deferred value cannot be used as a compile-time constant."); |
| 644 | 644 |
| 645 static const MessageKind DEFERRED_COMPILE_TIME_CONSTANT_CONSTRUCTION = | 645 static const MessageKind DEFERRED_COMPILE_TIME_CONSTANT_CONSTRUCTION = |
| 646 const MessageKind("A deferred class cannot be used to create a" | 646 const MessageKind( |
| 647 "A deferred class cannot be used to create a " |
| 647 "compile-time constant."); | 648 "compile-time constant."); |
| 648 | 649 |
| 649 static const MessageKind CYCLIC_COMPILE_TIME_CONSTANTS = const MessageKind( | 650 static const MessageKind CYCLIC_COMPILE_TIME_CONSTANTS = const MessageKind( |
| 650 "Cycle in the compile-time constant computation."); | 651 "Cycle in the compile-time constant computation."); |
| 651 | 652 |
| 652 static const MessageKind CONSTRUCTOR_IS_NOT_CONST = const MessageKind( | 653 static const MessageKind CONSTRUCTOR_IS_NOT_CONST = const MessageKind( |
| 653 "Constructor is not a 'const' constructor."); | 654 "Constructor is not a 'const' constructor."); |
| 654 | 655 |
| 655 static const MessageKind CONST_MAP_KEY_OVERRIDES_EQUALS = | 656 static const MessageKind CONST_MAP_KEY_OVERRIDES_EQUALS = |
| 656 const MessageKind( | 657 const MessageKind( |
| (...skipping 1955 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2612 static String convertToString(value) { | 2613 static String convertToString(value) { |
| 2613 if (value is ErrorToken) { | 2614 if (value is ErrorToken) { |
| 2614 // Shouldn't happen. | 2615 // Shouldn't happen. |
| 2615 return value.assertionMessage; | 2616 return value.assertionMessage; |
| 2616 } else if (value is Token) { | 2617 } else if (value is Token) { |
| 2617 value = value.value; | 2618 value = value.value; |
| 2618 } | 2619 } |
| 2619 return '$value'; | 2620 return '$value'; |
| 2620 } | 2621 } |
| 2621 } | 2622 } |
| OLD | NEW |