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 = ""; |
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 2223 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 |