| 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 2368 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2379 **************************************************************** | 2379 **************************************************************** |
| 2380 * WARNING: dart:mirrors support in dart2js is experimental, | 2380 * WARNING: dart:mirrors support in dart2js is experimental, |
| 2381 * and not recommended. | 2381 * and not recommended. |
| 2382 * This implementation of mirrors is incomplete, | 2382 * This implementation of mirrors is incomplete, |
| 2383 * and often greatly increases the size of the generated | 2383 * and often greatly increases the size of the generated |
| 2384 * JavaScript code. | 2384 * JavaScript code. |
| 2385 * | 2385 * |
| 2386 * Your app imports dart:mirrors via:'''''' | 2386 * Your app imports dart:mirrors via:'''''' |
| 2387 $IMPORT_EXPERIMENTAL_MIRRORS_PADDING#{importChain} | 2387 $IMPORT_EXPERIMENTAL_MIRRORS_PADDING#{importChain} |
| 2388 * | 2388 * |
| 2389 * Starting with Dart 1.9, you must use the | 2389 * You can disable this message by using the --enable-experimental-mirrors |
| 2390 * --enable-experimental-mirrors command-line flag to opt-in. | 2390 * command-line flag. |
| 2391 * You can begin using this flag now if mirrors support is critical. | |
| 2392 * | 2391 * |
| 2393 * To learn what to do next, please visit: | 2392 * To learn what to do next, please visit: |
| 2394 * http://dartlang.org/dart2js-reflection | 2393 * http://dartlang.org/dart2js-reflection |
| 2395 **************************************************************** | 2394 **************************************************************** |
| 2396 '''); | 2395 '''); |
| 2397 | 2396 |
| 2398 static const MessageKind CALL_NOT_SUPPORTED_ON_NATIVE_CLASS = | 2397 static const MessageKind CALL_NOT_SUPPORTED_ON_NATIVE_CLASS = |
| 2399 const MessageKind( | 2398 const MessageKind( |
| 2400 "Non-supported 'call' member on a native class, or a " | 2399 "Non-supported 'call' member on a native class, or a " |
| 2401 "subclass of a native class."); | 2400 "subclass of a native class."); |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2455 static String convertToString(value) { | 2454 static String convertToString(value) { |
| 2456 if (value is ErrorToken) { | 2455 if (value is ErrorToken) { |
| 2457 // Shouldn't happen. | 2456 // Shouldn't happen. |
| 2458 return value.assertionMessage; | 2457 return value.assertionMessage; |
| 2459 } else if (value is Token) { | 2458 } else if (value is Token) { |
| 2460 value = value.value; | 2459 value = value.value; |
| 2461 } | 2460 } |
| 2462 return '$value'; | 2461 return '$value'; |
| 2463 } | 2462 } |
| 2464 } | 2463 } |
| OLD | NEW |