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 2057 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2068 "#{warnings} warning(s) suppressed in #{uri}."); | 2068 "#{warnings} warning(s) suppressed in #{uri}."); |
2069 | 2069 |
2070 static const MessageKind HIDDEN_HINTS = const MessageKind( | 2070 static const MessageKind HIDDEN_HINTS = const MessageKind( |
2071 "#{hints} hint(s) suppressed in #{uri}."); | 2071 "#{hints} hint(s) suppressed in #{uri}."); |
2072 | 2072 |
2073 static const MessageKind PREAMBLE = const MessageKind( | 2073 static const MessageKind PREAMBLE = const MessageKind( |
2074 "When run on the command-line, the compiled output might" | 2074 "When run on the command-line, the compiled output might" |
2075 " require a preamble file located in:\n" | 2075 " require a preamble file located in:\n" |
2076 " <sdk>/lib/_internal/compiler/js_lib/preambles."); | 2076 " <sdk>/lib/_internal/compiler/js_lib/preambles."); |
2077 | 2077 |
2078 static const MessageKind EXPERIMENTAL_ASYNC_AWAIT = const MessageKind( | |
2079 "Experimental language feature 'async/await' is not supported."); | |
2080 | |
2081 static const MessageKind INVALID_STARRED_KEYWORD = const MessageKind( | 2078 static const MessageKind INVALID_STARRED_KEYWORD = const MessageKind( |
2082 "Invalid '#{keyword}' keyword.", | 2079 "Invalid '#{keyword}' keyword.", |
2083 options: const ['--enable-async'], | 2080 options: const ['--enable-async'], |
2084 howToFix: "Try removing whitespace between '#{keyword}' and '*'.", | 2081 howToFix: "Try removing whitespace between '#{keyword}' and '*'.", |
2085 examples: const [ | 2082 examples: const [ |
2086 "main() async * {}", | 2083 "main() async * {}", |
2087 "main() sync * {}", | 2084 "main() sync * {}", |
2088 "main() async* { yield * null; }" | 2085 "main() async* { yield * null; }" |
2089 ]); | 2086 ]); |
2090 | 2087 |
(...skipping 359 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2450 static String convertToString(value) { | 2447 static String convertToString(value) { |
2451 if (value is ErrorToken) { | 2448 if (value is ErrorToken) { |
2452 // Shouldn't happen. | 2449 // Shouldn't happen. |
2453 return value.assertionMessage; | 2450 return value.assertionMessage; |
2454 } else if (value is Token) { | 2451 } else if (value is Token) { |
2455 value = value.value; | 2452 value = value.value; |
2456 } | 2453 } |
2457 return '$value'; | 2454 return '$value'; |
2458 } | 2455 } |
2459 } | 2456 } |
OLD | NEW |