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 |
533 static const MessageKind NO_CATCH_NOR_FINALLY = const MessageKind( | 536 static const MessageKind NO_CATCH_NOR_FINALLY = const MessageKind( |
534 "Expected 'catch' or 'finally'."); | 537 "Expected 'catch' or 'finally'."); |
535 | 538 |
536 static const MessageKind EMPTY_CATCH_DECLARATION = const MessageKind( | 539 static const MessageKind EMPTY_CATCH_DECLARATION = const MessageKind( |
537 "Expected an identifier in catch declaration."); | 540 "Expected an identifier in catch declaration."); |
538 | 541 |
539 static const MessageKind EXTRA_CATCH_DECLARATION = const MessageKind( | 542 static const MessageKind EXTRA_CATCH_DECLARATION = const MessageKind( |
540 "Extra parameter in catch declaration."); | 543 "Extra parameter in catch declaration."); |
541 | 544 |
542 static const MessageKind PARAMETER_WITH_TYPE_IN_CATCH = const MessageKind( | 545 static const MessageKind PARAMETER_WITH_TYPE_IN_CATCH = const MessageKind( |
(...skipping 2066 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2609 static String convertToString(value) { | 2612 static String convertToString(value) { |
2610 if (value is ErrorToken) { | 2613 if (value is ErrorToken) { |
2611 // Shouldn't happen. | 2614 // Shouldn't happen. |
2612 return value.assertionMessage; | 2615 return value.assertionMessage; |
2613 } else if (value is Token) { | 2616 } else if (value is Token) { |
2614 value = value.value; | 2617 value = value.value; |
2615 } | 2618 } |
2616 return '$value'; | 2619 return '$value'; |
2617 } | 2620 } |
2618 } | 2621 } |
OLD | NEW |