| 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 1157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1168 | 1168 |
| 1169 static const MessageKind FACTORY_REDIRECTION_IN_NON_FACTORY = | 1169 static const MessageKind FACTORY_REDIRECTION_IN_NON_FACTORY = |
| 1170 const MessageKind( | 1170 const MessageKind( |
| 1171 "Factory redirection only allowed in factories."); | 1171 "Factory redirection only allowed in factories."); |
| 1172 | 1172 |
| 1173 static const MessageKind MISSING_FACTORY_KEYWORD = const MessageKind( | 1173 static const MessageKind MISSING_FACTORY_KEYWORD = const MessageKind( |
| 1174 "Did you forget a factory keyword here?"); | 1174 "Did you forget a factory keyword here?"); |
| 1175 | 1175 |
| 1176 static const MessageKind DEFERRED_LIBRARY_DART_2_DART = | 1176 static const MessageKind DEFERRED_LIBRARY_DART_2_DART = |
| 1177 const MessageKind( | 1177 const MessageKind( |
| 1178 "Deferred loading is not supported by the dart backend yet. " | 1178 "Deferred loading is not supported by the dart backend yet."); |
| 1179 "Will not split the output."); | |
| 1180 | 1179 |
| 1181 static const MessageKind DEFERRED_LIBRARY_WITHOUT_PREFIX = | 1180 static const MessageKind DEFERRED_LIBRARY_WITHOUT_PREFIX = |
| 1182 const MessageKind( | 1181 const MessageKind( |
| 1183 "This import is deferred but there is no prefix keyword.", | 1182 "This import is deferred but there is no prefix keyword.", |
| 1184 howToFix: | 1183 howToFix: |
| 1185 "Try adding a prefix to the import."); | 1184 "Try adding a prefix to the import."); |
| 1186 | 1185 |
| 1187 static const MessageKind DEFERRED_LIBRARY_DUPLICATE_PREFIX = | 1186 static const MessageKind DEFERRED_LIBRARY_DUPLICATE_PREFIX = |
| 1188 const MessageKind( | 1187 const MessageKind( |
| 1189 "The prefix of this deferred import is not unique.", | 1188 "The prefix of this deferred import is not unique.", |
| (...skipping 891 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2081 static String convertToString(value) { | 2080 static String convertToString(value) { |
| 2082 if (value is ErrorToken) { | 2081 if (value is ErrorToken) { |
| 2083 // Shouldn't happen. | 2082 // Shouldn't happen. |
| 2084 return value.assertionMessage; | 2083 return value.assertionMessage; |
| 2085 } else if (value is Token) { | 2084 } else if (value is Token) { |
| 2086 value = value.value; | 2085 value = value.value; |
| 2087 } | 2086 } |
| 2088 return '$value'; | 2087 return '$value'; |
| 2089 } | 2088 } |
| 2090 } | 2089 } |
| OLD | NEW |