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 2186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2197 | 2197 |
2198 static const MessageKind HIDDEN_WARNINGS = const MessageKind( | 2198 static const MessageKind HIDDEN_WARNINGS = const MessageKind( |
2199 "#{warnings} warning(s) suppressed in #{uri}."); | 2199 "#{warnings} warning(s) suppressed in #{uri}."); |
2200 | 2200 |
2201 static const MessageKind HIDDEN_HINTS = const MessageKind( | 2201 static const MessageKind HIDDEN_HINTS = const MessageKind( |
2202 "#{hints} hint(s) suppressed in #{uri}."); | 2202 "#{hints} hint(s) suppressed in #{uri}."); |
2203 | 2203 |
2204 static const MessageKind PREAMBLE = const MessageKind( | 2204 static const MessageKind PREAMBLE = const MessageKind( |
2205 "When run on the command-line, the compiled output might" | 2205 "When run on the command-line, the compiled output might" |
2206 " require a preamble file located in:\n" | 2206 " require a preamble file located in:\n" |
2207 " <sdk>/lib/_internal/compiler/js_lib/preambles."); | 2207 " <sdk>/lib/_internal/js_runtime/lib/preambles."); |
2208 | 2208 |
2209 static const MessageKind INVALID_SYNC_MODIFIER = const MessageKind( | 2209 static const MessageKind INVALID_SYNC_MODIFIER = const MessageKind( |
2210 "Invalid modifier 'sync'.", | 2210 "Invalid modifier 'sync'.", |
2211 options: const ['--enable-async'], | 2211 options: const ['--enable-async'], |
2212 howToFix: "Try replacing 'sync' with 'sync*'.", | 2212 howToFix: "Try replacing 'sync' with 'sync*'.", |
2213 examples: const [ | 2213 examples: const [ |
2214 "main() sync {}" | 2214 "main() sync {}" |
2215 ]); | 2215 ]); |
2216 | 2216 |
2217 static const MessageKind INVALID_AWAIT_FOR = const MessageKind( | 2217 static const MessageKind INVALID_AWAIT_FOR = const MessageKind( |
(...skipping 395 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2613 static String convertToString(value) { | 2613 static String convertToString(value) { |
2614 if (value is ErrorToken) { | 2614 if (value is ErrorToken) { |
2615 // Shouldn't happen. | 2615 // Shouldn't happen. |
2616 return value.assertionMessage; | 2616 return value.assertionMessage; |
2617 } else if (value is Token) { | 2617 } else if (value is Token) { |
2618 value = value.value; | 2618 value = value.value; |
2619 } | 2619 } |
2620 return '$value'; | 2620 return '$value'; |
2621 } | 2621 } |
2622 } | 2622 } |
OLD | NEW |