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 1402 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1413 static const MessageKind AMBIGUOUS_LOCATION = const MessageKind( | 1413 static const MessageKind AMBIGUOUS_LOCATION = const MessageKind( |
1414 "'#{name}' is defined here."); | 1414 "'#{name}' is defined here."); |
1415 | 1415 |
1416 static const MessageKind IMPORTED_HERE = const MessageKind( | 1416 static const MessageKind IMPORTED_HERE = const MessageKind( |
1417 "'#{name}' is imported here."); | 1417 "'#{name}' is imported here."); |
1418 | 1418 |
1419 static const MessageKind OVERRIDE_EQUALS_NOT_HASH_CODE = const MessageKind( | 1419 static const MessageKind OVERRIDE_EQUALS_NOT_HASH_CODE = const MessageKind( |
1420 "The class '#{class}' overrides 'operator==', " | 1420 "The class '#{class}' overrides 'operator==', " |
1421 "but not 'get hashCode'."); | 1421 "but not 'get hashCode'."); |
1422 | 1422 |
| 1423 static const MessageKind INVALID_URI = const MessageKind( |
| 1424 "#{uri} is not a valid URI."); |
| 1425 |
1423 static const MessageKind INTERNAL_LIBRARY_FROM = const MessageKind( | 1426 static const MessageKind INTERNAL_LIBRARY_FROM = const MessageKind( |
1424 "Internal library '#{resolvedUri}' is not accessible from " | 1427 "Internal library '#{resolvedUri}' is not accessible from " |
1425 "'#{importingUri}'."); | 1428 "'#{importingUri}'."); |
1426 | 1429 |
1427 static const MessageKind INTERNAL_LIBRARY = const MessageKind( | 1430 static const MessageKind INTERNAL_LIBRARY = const MessageKind( |
1428 "Internal library '#{resolvedUri}' is not accessible."); | 1431 "Internal library '#{resolvedUri}' is not accessible."); |
1429 | 1432 |
1430 static const MessageKind LIBRARY_NOT_FOUND = const MessageKind( | 1433 static const MessageKind LIBRARY_NOT_FOUND = const MessageKind( |
1431 "Library not found '#{resolvedUri}'."); | 1434 "Library not found '#{resolvedUri}'."); |
1432 | 1435 |
(...skipping 1112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2545 static String convertToString(value) { | 2548 static String convertToString(value) { |
2546 if (value is ErrorToken) { | 2549 if (value is ErrorToken) { |
2547 // Shouldn't happen. | 2550 // Shouldn't happen. |
2548 return value.assertionMessage; | 2551 return value.assertionMessage; |
2549 } else if (value is Token) { | 2552 } else if (value is Token) { |
2550 value = value.value; | 2553 value = value.value; |
2551 } | 2554 } |
2552 return '$value'; | 2555 return '$value'; |
2553 } | 2556 } |
2554 } | 2557 } |
OLD | NEW |