Chromium Code Reviews| 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."); | |
|
Johnni Winther
2014/08/04 07:34:53
"Will .. output" -> "The output will not be split.
| |
| 1179 | 1180 |
| 1180 static const MessageKind DEFERRED_LIBRARY_WITHOUT_PREFIX = | 1181 static const MessageKind DEFERRED_LIBRARY_WITHOUT_PREFIX = |
| 1181 const MessageKind( | 1182 const MessageKind( |
| 1182 "This import is deferred but there is no prefix keyword.", | 1183 "This import is deferred but there is no prefix keyword.", |
| 1183 howToFix: | 1184 howToFix: |
| 1184 "Try adding a prefix to the import."); | 1185 "Try adding a prefix to the import."); |
| 1185 | 1186 |
| 1186 static const MessageKind DEFERRED_LIBRARY_DUPLICATE_PREFIX = | 1187 static const MessageKind DEFERRED_LIBRARY_DUPLICATE_PREFIX = |
| 1187 const MessageKind( | 1188 const MessageKind( |
| 1188 "The prefix of this deferred import is not unique.", | 1189 "The prefix of this deferred import is not unique.", |
| (...skipping 918 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2107 static String convertToString(value) { | 2108 static String convertToString(value) { |
| 2108 if (value is ErrorToken) { | 2109 if (value is ErrorToken) { |
| 2109 // Shouldn't happen. | 2110 // Shouldn't happen. |
| 2110 return value.assertionMessage; | 2111 return value.assertionMessage; |
| 2111 } else if (value is Token) { | 2112 } else if (value is Token) { |
| 2112 value = value.value; | 2113 value = value.value; |
| 2113 } | 2114 } |
| 2114 return '$value'; | 2115 return '$value'; |
| 2115 } | 2116 } |
| 2116 } | 2117 } |
| OLD | NEW |