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