| 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 = ""; | 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: |
| 11 * | 11 * |
| 12 * 1. The message should be a complete sentence starting with an uppercase | 12 * 1. The message should be a complete sentence starting with an uppercase |
| 13 * letter, and ending with a period. | 13 * letter, and ending with a period. |
| 14 * | 14 * |
| 15 * 2. Reserved words and embedded identifiers should be in single quotes, so | 15 * 2. Reserved words and embedded identifiers should be in single quotes, so |
| 16 * prefer double quotes for the complete message. For example, "The | 16 * prefer double quotes for the complete message. For example, "The |
| 17 * class '#{className}' can't use 'super'." Notice that the word 'class' in the | 17 * class '#{className}' can't use 'super'." Notice that the word 'class' in the |
| (...skipping 2216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2234 static String convertToString(value) { | 2234 static String convertToString(value) { |
| 2235 if (value is ErrorToken) { | 2235 if (value is ErrorToken) { |
| 2236 // Shouldn't happen. | 2236 // Shouldn't happen. |
| 2237 return value.assertionMessage; | 2237 return value.assertionMessage; |
| 2238 } else if (value is Token) { | 2238 } else if (value is Token) { |
| 2239 value = value.value; | 2239 value = value.value; |
| 2240 } | 2240 } |
| 2241 return '$value'; | 2241 return '$value'; |
| 2242 } | 2242 } |
| 2243 } | 2243 } |
| OLD | NEW |