| 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 383 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 394 | 394 |
| 395 static const MessageKind DUPLICATE_EXPORT_DECL = const MessageKind( | 395 static const MessageKind DUPLICATE_EXPORT_DECL = const MessageKind( |
| 396 "The exported '#{name}' from export #{uriString} is defined here."); | 396 "The exported '#{name}' from export #{uriString} is defined here."); |
| 397 | 397 |
| 398 static const MessageKind NOT_A_TYPE = const MessageKind( | 398 static const MessageKind NOT_A_TYPE = const MessageKind( |
| 399 "'#{node}' is not a type."); | 399 "'#{node}' is not a type."); |
| 400 | 400 |
| 401 static const MessageKind NOT_A_PREFIX = const MessageKind( | 401 static const MessageKind NOT_A_PREFIX = const MessageKind( |
| 402 "'#{node}' is not a prefix."); | 402 "'#{node}' is not a prefix."); |
| 403 | 403 |
| 404 static const MessageKind PREFIX_AS_EXPRESSION = const MessageKind( |
| 405 "Library prefix '#{prefix}' is not a valid expression."); |
| 406 |
| 404 static const MessageKind CANNOT_FIND_CONSTRUCTOR = const MessageKind( | 407 static const MessageKind CANNOT_FIND_CONSTRUCTOR = const MessageKind( |
| 405 "Cannot find constructor '#{constructorName}'."); | 408 "Cannot find constructor '#{constructorName}'."); |
| 406 | 409 |
| 407 static const MessageKind CYCLIC_CLASS_HIERARCHY = const MessageKind( | 410 static const MessageKind CYCLIC_CLASS_HIERARCHY = const MessageKind( |
| 408 "'#{className}' creates a cycle in the class hierarchy."); | 411 "'#{className}' creates a cycle in the class hierarchy."); |
| 409 | 412 |
| 410 static const MessageKind CYCLIC_REDIRECTING_FACTORY = const MessageKind( | 413 static const MessageKind CYCLIC_REDIRECTING_FACTORY = const MessageKind( |
| 411 'Redirecting factory leads to a cyclic redirection.'); | 414 'Redirecting factory leads to a cyclic redirection.'); |
| 412 | 415 |
| 413 static const MessageKind INVALID_RECEIVER_IN_INITIALIZER = const MessageKind( | 416 static const MessageKind INVALID_RECEIVER_IN_INITIALIZER = const MessageKind( |
| (...skipping 2199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2613 static String convertToString(value) { | 2616 static String convertToString(value) { |
| 2614 if (value is ErrorToken) { | 2617 if (value is ErrorToken) { |
| 2615 // Shouldn't happen. | 2618 // Shouldn't happen. |
| 2616 return value.assertionMessage; | 2619 return value.assertionMessage; |
| 2617 } else if (value is Token) { | 2620 } else if (value is Token) { |
| 2618 value = value.value; | 2621 value = value.value; |
| 2619 } | 2622 } |
| 2620 return '$value'; | 2623 return '$value'; |
| 2621 } | 2624 } |
| 2622 } | 2625 } |
| OLD | NEW |