| 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 1333 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1344 static const MessageKind AMBIGUOUS_LOCATION = const MessageKind( | 1344 static const MessageKind AMBIGUOUS_LOCATION = const MessageKind( |
| 1345 "'#{name}' is defined here."); | 1345 "'#{name}' is defined here."); |
| 1346 | 1346 |
| 1347 static const MessageKind IMPORTED_HERE = const MessageKind( | 1347 static const MessageKind IMPORTED_HERE = const MessageKind( |
| 1348 "'#{name}' is imported here."); | 1348 "'#{name}' is imported here."); |
| 1349 | 1349 |
| 1350 static const MessageKind OVERRIDE_EQUALS_NOT_HASH_CODE = const MessageKind( | 1350 static const MessageKind OVERRIDE_EQUALS_NOT_HASH_CODE = const MessageKind( |
| 1351 "The class '#{class}' overrides 'operator==', " | 1351 "The class '#{class}' overrides 'operator==', " |
| 1352 "but not 'get hashCode'."); | 1352 "but not 'get hashCode'."); |
| 1353 | 1353 |
| 1354 static const MessageKind PACKAGE_ROOT_NOT_SET = const MessageKind( | |
| 1355 "Cannot resolve '#{uri}'. Package root has not been set."); | |
| 1356 | |
| 1357 static const MessageKind INTERNAL_LIBRARY_FROM = const MessageKind( | 1354 static const MessageKind INTERNAL_LIBRARY_FROM = const MessageKind( |
| 1358 "Internal library '#{resolvedUri}' is not accessible from " | 1355 "Internal library '#{resolvedUri}' is not accessible from " |
| 1359 "'#{importingUri}'."); | 1356 "'#{importingUri}'."); |
| 1360 | 1357 |
| 1361 static const MessageKind INTERNAL_LIBRARY = const MessageKind( | 1358 static const MessageKind INTERNAL_LIBRARY = const MessageKind( |
| 1362 "Internal library '#{resolvedUri}' is not accessible."); | 1359 "Internal library '#{resolvedUri}' is not accessible."); |
| 1363 | 1360 |
| 1364 static const MessageKind LIBRARY_NOT_FOUND = const MessageKind( | 1361 static const MessageKind LIBRARY_NOT_FOUND = const MessageKind( |
| 1365 "Library not found '#{resolvedUri}'."); | 1362 "Library not found '#{resolvedUri}'."); |
| 1366 | 1363 |
| (...skipping 1074 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2441 static String convertToString(value) { | 2438 static String convertToString(value) { |
| 2442 if (value is ErrorToken) { | 2439 if (value is ErrorToken) { |
| 2443 // Shouldn't happen. | 2440 // Shouldn't happen. |
| 2444 return value.assertionMessage; | 2441 return value.assertionMessage; |
| 2445 } else if (value is Token) { | 2442 } else if (value is Token) { |
| 2446 value = value.value; | 2443 value = value.value; |
| 2447 } | 2444 } |
| 2448 return '$value'; | 2445 return '$value'; |
| 2449 } | 2446 } |
| 2450 } | 2447 } |
| OLD | NEW |