| 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 1730 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1741 "Variable '#{variableName}' is not shown to have type " | 1741 "Variable '#{variableName}' is not shown to have type " |
| 1742 "'#{shownType}' because '#{shownType}' is not a subtype of the " | 1742 "'#{shownType}' because '#{shownType}' is not a subtype of the " |
| 1743 "known type '#{knownType}' of '#{variableName}'."); | 1743 "known type '#{knownType}' of '#{variableName}'."); |
| 1744 | 1744 |
| 1745 static const MessageKind NOT_MORE_SPECIFIC_SUGGESTION = const MessageKind( | 1745 static const MessageKind NOT_MORE_SPECIFIC_SUGGESTION = const MessageKind( |
| 1746 "Variable '#{variableName}' is not shown to have type " | 1746 "Variable '#{variableName}' is not shown to have type " |
| 1747 "'#{shownType}' because '#{shownType}' is not more specific than the " | 1747 "'#{shownType}' because '#{shownType}' is not more specific than the " |
| 1748 "known type '#{knownType}' of '#{variableName}'.", | 1748 "known type '#{knownType}' of '#{variableName}'.", |
| 1749 howToFix: "Try replacing '#{shownType}' with '#{shownTypeSuggestion}'."); | 1749 howToFix: "Try replacing '#{shownType}' with '#{shownTypeSuggestion}'."); |
| 1750 | 1750 |
| 1751 static const MessageKind HIDDEN_WARNINGS_HINTS = const MessageKind( |
| 1752 "#{warnings} warning(s) and #{hints} hint(s) suppressed in #{uri}."); |
| 1753 |
| 1754 static const MessageKind HIDDEN_WARNINGS = const MessageKind( |
| 1755 "#{warnings} warning(s) suppressed in #{uri}."); |
| 1756 |
| 1757 static const MessageKind HIDDEN_HINTS = const MessageKind( |
| 1758 "#{hints} hint(s) suppressed in #{uri}."); |
| 1759 |
| 1751 ////////////////////////////////////////////////////////////////////////////// | 1760 ////////////////////////////////////////////////////////////////////////////// |
| 1752 // Patch errors start. | 1761 // Patch errors start. |
| 1753 ////////////////////////////////////////////////////////////////////////////// | 1762 ////////////////////////////////////////////////////////////////////////////// |
| 1754 | 1763 |
| 1755 static const MessageKind PATCH_RETURN_TYPE_MISMATCH = const MessageKind( | 1764 static const MessageKind PATCH_RETURN_TYPE_MISMATCH = const MessageKind( |
| 1756 "Patch return type '#{patchReturnType}' does not match " | 1765 "Patch return type '#{patchReturnType}' does not match " |
| 1757 "'#{originReturnType}' on origin method '#{methodName}'."); | 1766 "'#{originReturnType}' on origin method '#{methodName}'."); |
| 1758 | 1767 |
| 1759 static const MessageKind PATCH_REQUIRED_PARAMETER_COUNT_MISMATCH = | 1768 static const MessageKind PATCH_REQUIRED_PARAMETER_COUNT_MISMATCH = |
| 1760 const MessageKind( | 1769 const MessageKind( |
| (...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1891 return computeMessage(); | 1900 return computeMessage(); |
| 1892 } | 1901 } |
| 1893 | 1902 |
| 1894 bool operator==(other) { | 1903 bool operator==(other) { |
| 1895 if (other is !Message) return false; | 1904 if (other is !Message) return false; |
| 1896 return (kind == other.kind) && (toString() == other.toString()); | 1905 return (kind == other.kind) && (toString() == other.toString()); |
| 1897 } | 1906 } |
| 1898 | 1907 |
| 1899 int get hashCode => throw new UnsupportedError('Message.hashCode'); | 1908 int get hashCode => throw new UnsupportedError('Message.hashCode'); |
| 1900 } | 1909 } |
| OLD | NEW |