| 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 /** | 5 /** |
| 6 * The messages in this file should meet the following guide lines: | 6 * The messages in this file should meet the following guide lines: |
| 7 * | 7 * |
| 8 * 1. The message should be a complete sentence starting with an uppercase | 8 * 1. The message should be a complete sentence starting with an uppercase |
| 9 * letter, and ending with a period. | 9 * letter, and ending with a period. |
| 10 * | 10 * |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 82 ADDITIONAL_ARGUMENT, | 82 ADDITIONAL_ARGUMENT, |
| 83 ADDITIONAL_TYPE_ARGUMENT, | 83 ADDITIONAL_TYPE_ARGUMENT, |
| 84 ALREADY_INITIALIZED, | 84 ALREADY_INITIALIZED, |
| 85 AMBIGUOUS_LOCATION, | 85 AMBIGUOUS_LOCATION, |
| 86 AMBIGUOUS_REEXPORT, | 86 AMBIGUOUS_REEXPORT, |
| 87 ASSERT_IS_GIVEN_NAMED_ARGUMENTS, | 87 ASSERT_IS_GIVEN_NAMED_ARGUMENTS, |
| 88 ASSIGNING_FINAL_FIELD_IN_SUPER, | 88 ASSIGNING_FINAL_FIELD_IN_SUPER, |
| 89 ASSIGNING_METHOD, | 89 ASSIGNING_METHOD, |
| 90 ASSIGNING_METHOD_IN_SUPER, | 90 ASSIGNING_METHOD_IN_SUPER, |
| 91 ASSIGNING_TYPE, | 91 ASSIGNING_TYPE, |
| 92 ASYNC_AWAIT_NOT_SUPPORTED, | |
| 93 ASYNC_KEYWORD_AS_IDENTIFIER, | 92 ASYNC_KEYWORD_AS_IDENTIFIER, |
| 94 ASYNC_MODIFIER_ON_ABSTRACT_METHOD, | 93 ASYNC_MODIFIER_ON_ABSTRACT_METHOD, |
| 95 ASYNC_MODIFIER_ON_CONSTRUCTOR, | 94 ASYNC_MODIFIER_ON_CONSTRUCTOR, |
| 96 ASYNC_MODIFIER_ON_SETTER, | 95 ASYNC_MODIFIER_ON_SETTER, |
| 97 AWAIT_MEMBER_NOT_FOUND, | 96 AWAIT_MEMBER_NOT_FOUND, |
| 98 AWAIT_MEMBER_NOT_FOUND_IN_CLOSURE, | 97 AWAIT_MEMBER_NOT_FOUND_IN_CLOSURE, |
| 99 BAD_INPUT_CHARACTER, | 98 BAD_INPUT_CHARACTER, |
| 100 BEFORE_TOP_LEVEL, | 99 BEFORE_TOP_LEVEL, |
| 101 BINARY_OPERATOR_BAD_ARITY, | 100 BINARY_OPERATOR_BAD_ARITY, |
| 102 BODY_EXPECTED, | 101 BODY_EXPECTED, |
| (...skipping 3189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3292 howToFix: "Try rewriting the loop as a for-in loop or removing the " | 3291 howToFix: "Try rewriting the loop as a for-in loop or removing the " |
| 3293 "'await' keyword.", | 3292 "'await' keyword.", |
| 3294 examples: const [ | 3293 examples: const [ |
| 3295 """ | 3294 """ |
| 3296 main() async* { | 3295 main() async* { |
| 3297 await for (int i = 0; i < 10; i++) {} | 3296 await for (int i = 0; i < 10; i++) {} |
| 3298 } | 3297 } |
| 3299 """ | 3298 """ |
| 3300 ]), | 3299 ]), |
| 3301 | 3300 |
| 3302 MessageKind.ASYNC_AWAIT_NOT_SUPPORTED: const MessageTemplate( | |
| 3303 MessageKind.ASYNC_AWAIT_NOT_SUPPORTED, | |
| 3304 "The async/sync* syntax is not supported on the current platform."), | |
| 3305 | |
| 3306 MessageKind.ASYNC_MODIFIER_ON_ABSTRACT_METHOD: const MessageTemplate( | 3301 MessageKind.ASYNC_MODIFIER_ON_ABSTRACT_METHOD: const MessageTemplate( |
| 3307 MessageKind.ASYNC_MODIFIER_ON_ABSTRACT_METHOD, | 3302 MessageKind.ASYNC_MODIFIER_ON_ABSTRACT_METHOD, |
| 3308 "The modifier '#{modifier}' is not allowed on an abstract method.", | 3303 "The modifier '#{modifier}' is not allowed on an abstract method.", |
| 3309 options: const ['--enable-async'], | 3304 options: const ['--enable-async'], |
| 3310 howToFix: "Try removing the '#{modifier}' modifier or adding a " | 3305 howToFix: "Try removing the '#{modifier}' modifier or adding a " |
| 3311 "body to the method.", | 3306 "body to the method.", |
| 3312 examples: const [ | 3307 examples: const [ |
| 3313 """ | 3308 """ |
| 3314 abstract class A { | 3309 abstract class A { |
| 3315 method() async; | 3310 method() async; |
| (...skipping 465 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3781 static String convertToString(value) { | 3776 static String convertToString(value) { |
| 3782 if (value is ErrorToken) { | 3777 if (value is ErrorToken) { |
| 3783 // Shouldn't happen. | 3778 // Shouldn't happen. |
| 3784 return value.assertionMessage; | 3779 return value.assertionMessage; |
| 3785 } else if (value is Token) { | 3780 } else if (value is Token) { |
| 3786 value = value.value; | 3781 value = value.value; |
| 3787 } | 3782 } |
| 3788 return '$value'; | 3783 return '$value'; |
| 3789 } | 3784 } |
| 3790 } | 3785 } |
| OLD | NEW |