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 1253 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1264 static const MessageKind ASSERT_IS_GIVEN_NAMED_ARGUMENTS = const MessageKind( | 1264 static const MessageKind ASSERT_IS_GIVEN_NAMED_ARGUMENTS = const MessageKind( |
1265 "'assert' takes no named arguments, but given #{argumentCount}."); | 1265 "'assert' takes no named arguments, but given #{argumentCount}."); |
1266 | 1266 |
1267 static const MessageKind FACTORY_REDIRECTION_IN_NON_FACTORY = | 1267 static const MessageKind FACTORY_REDIRECTION_IN_NON_FACTORY = |
1268 const MessageKind( | 1268 const MessageKind( |
1269 "Factory redirection only allowed in factories."); | 1269 "Factory redirection only allowed in factories."); |
1270 | 1270 |
1271 static const MessageKind MISSING_FACTORY_KEYWORD = const MessageKind( | 1271 static const MessageKind MISSING_FACTORY_KEYWORD = const MessageKind( |
1272 "Did you forget a factory keyword here?"); | 1272 "Did you forget a factory keyword here?"); |
1273 | 1273 |
| 1274 static const MessageKind NO_SUCH_METHOD_IN_NATIVE = |
| 1275 const MessageKind( |
| 1276 "'NoSuchMethod' is not supported for classes that extend native " |
| 1277 "classes."); |
| 1278 |
1274 static const MessageKind DEFERRED_LIBRARY_DART_2_DART = | 1279 static const MessageKind DEFERRED_LIBRARY_DART_2_DART = |
1275 const MessageKind( | 1280 const MessageKind( |
1276 "Deferred loading is not supported by the dart backend yet." | 1281 "Deferred loading is not supported by the dart backend yet." |
1277 "The output will not be split."); | 1282 "The output will not be split."); |
1278 | 1283 |
1279 static const MessageKind DEFERRED_LIBRARY_WITHOUT_PREFIX = | 1284 static const MessageKind DEFERRED_LIBRARY_WITHOUT_PREFIX = |
1280 const MessageKind( | 1285 const MessageKind( |
1281 "This import is deferred but there is no prefix keyword.", | 1286 "This import is deferred but there is no prefix keyword.", |
1282 howToFix: | 1287 howToFix: |
1283 "Try adding a prefix to the import."); | 1288 "Try adding a prefix to the import."); |
(...skipping 1153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2437 static String convertToString(value) { | 2442 static String convertToString(value) { |
2438 if (value is ErrorToken) { | 2443 if (value is ErrorToken) { |
2439 // Shouldn't happen. | 2444 // Shouldn't happen. |
2440 return value.assertionMessage; | 2445 return value.assertionMessage; |
2441 } else if (value is Token) { | 2446 } else if (value is Token) { |
2442 value = value.value; | 2447 value = value.value; |
2443 } | 2448 } |
2444 return '$value'; | 2449 return '$value'; |
2445 } | 2450 } |
2446 } | 2451 } |
OLD | NEW |