| 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, |
| 92 ASYNC_KEYWORD_AS_IDENTIFIER, | 93 ASYNC_KEYWORD_AS_IDENTIFIER, |
| 93 ASYNC_MODIFIER_ON_ABSTRACT_METHOD, | 94 ASYNC_MODIFIER_ON_ABSTRACT_METHOD, |
| 94 ASYNC_MODIFIER_ON_CONSTRUCTOR, | 95 ASYNC_MODIFIER_ON_CONSTRUCTOR, |
| 95 ASYNC_MODIFIER_ON_SETTER, | 96 ASYNC_MODIFIER_ON_SETTER, |
| 96 AWAIT_MEMBER_NOT_FOUND, | 97 AWAIT_MEMBER_NOT_FOUND, |
| 97 AWAIT_MEMBER_NOT_FOUND_IN_CLOSURE, | 98 AWAIT_MEMBER_NOT_FOUND_IN_CLOSURE, |
| 98 BAD_INPUT_CHARACTER, | 99 BAD_INPUT_CHARACTER, |
| 99 BEFORE_TOP_LEVEL, | 100 BEFORE_TOP_LEVEL, |
| 100 BINARY_OPERATOR_BAD_ARITY, | 101 BINARY_OPERATOR_BAD_ARITY, |
| 101 BODY_EXPECTED, | 102 BODY_EXPECTED, |
| (...skipping 3130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3232 howToFix: "Try rewriting the loop as a for-in loop or removing the " | 3233 howToFix: "Try rewriting the loop as a for-in loop or removing the " |
| 3233 "'await' keyword.", | 3234 "'await' keyword.", |
| 3234 examples: const [ | 3235 examples: const [ |
| 3235 """ | 3236 """ |
| 3236 main() async* { | 3237 main() async* { |
| 3237 await for (int i = 0; i < 10; i++) {} | 3238 await for (int i = 0; i < 10; i++) {} |
| 3238 } | 3239 } |
| 3239 """ | 3240 """ |
| 3240 ]), | 3241 ]), |
| 3241 | 3242 |
| 3243 MessageKind.ASYNC_AWAIT_NOT_SUPPORTED: |
| 3244 const MessageTemplate(MessageKind.ASYNC_AWAIT_NOT_SUPPORTED, |
| 3245 "The async/sync* syntax is not supported on the current platform."), |
| 3246 |
| 3247 |
| 3242 MessageKind.ASYNC_MODIFIER_ON_ABSTRACT_METHOD: const MessageTemplate( | 3248 MessageKind.ASYNC_MODIFIER_ON_ABSTRACT_METHOD: const MessageTemplate( |
| 3243 MessageKind.ASYNC_MODIFIER_ON_ABSTRACT_METHOD, | 3249 MessageKind.ASYNC_MODIFIER_ON_ABSTRACT_METHOD, |
| 3244 "The modifier '#{modifier}' is not allowed on an abstract method.", | 3250 "The modifier '#{modifier}' is not allowed on an abstract method.", |
| 3245 options: const ['--enable-async'], | 3251 options: const ['--enable-async'], |
| 3246 howToFix: "Try removing the '#{modifier}' modifier or adding a " | 3252 howToFix: "Try removing the '#{modifier}' modifier or adding a " |
| 3247 "body to the method.", | 3253 "body to the method.", |
| 3248 examples: const [ | 3254 examples: const [ |
| 3249 """ | 3255 """ |
| 3250 abstract class A { | 3256 abstract class A { |
| 3251 method() async; | 3257 method() async; |
| (...skipping 460 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3712 static String convertToString(value) { | 3718 static String convertToString(value) { |
| 3713 if (value is ErrorToken) { | 3719 if (value is ErrorToken) { |
| 3714 // Shouldn't happen. | 3720 // Shouldn't happen. |
| 3715 return value.assertionMessage; | 3721 return value.assertionMessage; |
| 3716 } else if (value is Token) { | 3722 } else if (value is Token) { |
| 3717 value = value.value; | 3723 value = value.value; |
| 3718 } | 3724 } |
| 3719 return '$value'; | 3725 return '$value'; |
| 3720 } | 3726 } |
| 3721 } | 3727 } |
| OLD | NEW |