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 512 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
523 static const MessageKind INITIALIZING_FORMAL_NOT_ALLOWED = const MessageKind( | 523 static const MessageKind INITIALIZING_FORMAL_NOT_ALLOWED = const MessageKind( |
524 "Initializing formal parameter only allowed in generative " | 524 "Initializing formal parameter only allowed in generative " |
525 "constructor."); | 525 "constructor."); |
526 | 526 |
527 static const MessageKind INVALID_PARAMETER = const MessageKind( | 527 static const MessageKind INVALID_PARAMETER = const MessageKind( |
528 "Cannot resolve parameter."); | 528 "Cannot resolve parameter."); |
529 | 529 |
530 static const MessageKind NOT_INSTANCE_FIELD = const MessageKind( | 530 static const MessageKind NOT_INSTANCE_FIELD = const MessageKind( |
531 "'#{fieldName}' is not an instance field."); | 531 "'#{fieldName}' is not an instance field."); |
532 | 532 |
533 static const MessageKind THIS_PROPERTY = const MessageKind( | |
534 "Expected an identifier."); | |
535 | |
536 static const MessageKind NO_CATCH_NOR_FINALLY = const MessageKind( | 533 static const MessageKind NO_CATCH_NOR_FINALLY = const MessageKind( |
537 "Expected 'catch' or 'finally'."); | 534 "Expected 'catch' or 'finally'."); |
538 | 535 |
539 static const MessageKind EMPTY_CATCH_DECLARATION = const MessageKind( | 536 static const MessageKind EMPTY_CATCH_DECLARATION = const MessageKind( |
540 "Expected an identifier in catch declaration."); | 537 "Expected an identifier in catch declaration."); |
541 | 538 |
542 static const MessageKind EXTRA_CATCH_DECLARATION = const MessageKind( | 539 static const MessageKind EXTRA_CATCH_DECLARATION = const MessageKind( |
543 "Extra parameter in catch declaration."); | 540 "Extra parameter in catch declaration."); |
544 | 541 |
545 static const MessageKind PARAMETER_WITH_TYPE_IN_CATCH = const MessageKind( | 542 static const MessageKind PARAMETER_WITH_TYPE_IN_CATCH = const MessageKind( |
(...skipping 2066 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2612 static String convertToString(value) { | 2609 static String convertToString(value) { |
2613 if (value is ErrorToken) { | 2610 if (value is ErrorToken) { |
2614 // Shouldn't happen. | 2611 // Shouldn't happen. |
2615 return value.assertionMessage; | 2612 return value.assertionMessage; |
2616 } else if (value is Token) { | 2613 } else if (value is Token) { |
2617 value = value.value; | 2614 value = value.value; |
2618 } | 2615 } |
2619 return '$value'; | 2616 return '$value'; |
2620 } | 2617 } |
2621 } | 2618 } |
OLD | NEW |