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 1947 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1958 | 1958 |
1959 static const MessageKind HIDDEN_WARNINGS = const MessageKind( | 1959 static const MessageKind HIDDEN_WARNINGS = const MessageKind( |
1960 "#{warnings} warning(s) suppressed in #{uri}."); | 1960 "#{warnings} warning(s) suppressed in #{uri}."); |
1961 | 1961 |
1962 static const MessageKind HIDDEN_HINTS = const MessageKind( | 1962 static const MessageKind HIDDEN_HINTS = const MessageKind( |
1963 "#{hints} hint(s) suppressed in #{uri}."); | 1963 "#{hints} hint(s) suppressed in #{uri}."); |
1964 | 1964 |
1965 static const MessageKind PREAMBLE = const MessageKind( | 1965 static const MessageKind PREAMBLE = const MessageKind( |
1966 "When run on the command-line, the compiled output might" | 1966 "When run on the command-line, the compiled output might" |
1967 " require a preamble file located in:\n" | 1967 " require a preamble file located in:\n" |
1968 " <sdk>/lib/_internal/lib/preambles."); | 1968 " <sdk>/lib/_internal/complire/js_lib/preambles."); |
1969 | 1969 |
1970 ////////////////////////////////////////////////////////////////////////////// | 1970 ////////////////////////////////////////////////////////////////////////////// |
1971 // Patch errors start. | 1971 // Patch errors start. |
1972 ////////////////////////////////////////////////////////////////////////////// | 1972 ////////////////////////////////////////////////////////////////////////////// |
1973 | 1973 |
1974 static const MessageKind PATCH_RETURN_TYPE_MISMATCH = const MessageKind( | 1974 static const MessageKind PATCH_RETURN_TYPE_MISMATCH = const MessageKind( |
1975 "Patch return type '#{patchReturnType}' does not match " | 1975 "Patch return type '#{patchReturnType}' does not match " |
1976 "'#{originReturnType}' on origin method '#{methodName}'."); | 1976 "'#{originReturnType}' on origin method '#{methodName}'."); |
1977 | 1977 |
1978 static const MessageKind PATCH_REQUIRED_PARAMETER_COUNT_MISMATCH = | 1978 static const MessageKind PATCH_REQUIRED_PARAMETER_COUNT_MISMATCH = |
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2120 static String convertToString(value) { | 2120 static String convertToString(value) { |
2121 if (value is ErrorToken) { | 2121 if (value is ErrorToken) { |
2122 // Shouldn't happen. | 2122 // Shouldn't happen. |
2123 return value.assertionMessage; | 2123 return value.assertionMessage; |
2124 } else if (value is Token) { | 2124 } else if (value is Token) { |
2125 value = value.value; | 2125 value = value.value; |
2126 } | 2126 } |
2127 return '$value'; | 2127 return '$value'; |
2128 } | 2128 } |
2129 } | 2129 } |
OLD | NEW |