| 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 | 5 |
| 6 /** | 6 /** |
| 7 * The messages in this file should meet the following guide lines: | 7 * The messages in this file should meet the following guide lines: |
| 8 * | 8 * |
| 9 * 1. The message should be a complete sentence starting with an uppercase | 9 * 1. The message should be a complete sentence starting with an uppercase |
| 10 * letter, and ending with a period. | 10 * letter, and ending with a period. |
| (...skipping 3334 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3345 Your app imports the unsupported library '#{uri}' via: | 3345 Your app imports the unsupported library '#{uri}' via: |
| 3346 '''''' | 3346 '''''' |
| 3347 $DISALLOWED_LIBRARY_IMPORT_PADDING#{importChain} | 3347 $DISALLOWED_LIBRARY_IMPORT_PADDING#{importChain} |
| 3348 | 3348 |
| 3349 Use the --categories option to support import of '#{uri}'. | 3349 Use the --categories option to support import of '#{uri}'. |
| 3350 '''), | 3350 '''), |
| 3351 | 3351 |
| 3352 MessageKind.MIRRORS_LIBRARY_NOT_SUPPORT_BY_BACKEND: | 3352 MessageKind.MIRRORS_LIBRARY_NOT_SUPPORT_BY_BACKEND: |
| 3353 const MessageTemplate( | 3353 const MessageTemplate( |
| 3354 MessageKind.MIRRORS_LIBRARY_NOT_SUPPORT_BY_BACKEND, | 3354 MessageKind.MIRRORS_LIBRARY_NOT_SUPPORT_BY_BACKEND, |
| 3355 "dart:mirrors library is not supported when using this backend."), | 3355 """ |
| 3356 dart:mirrors library is not supported when using this backend. |
| 3357 |
| 3358 Your app imports dart:mirrors via:"""""" |
| 3359 $MIRRORS_NOT_SUPPORTED_BY_BACKEND_PADDING#{importChain}"""), |
| 3356 | 3360 |
| 3357 MessageKind.CALL_NOT_SUPPORTED_ON_NATIVE_CLASS: | 3361 MessageKind.CALL_NOT_SUPPORTED_ON_NATIVE_CLASS: |
| 3358 const MessageTemplate(MessageKind.CALL_NOT_SUPPORTED_ON_NATIVE_CLASS, | 3362 const MessageTemplate(MessageKind.CALL_NOT_SUPPORTED_ON_NATIVE_CLASS, |
| 3359 "Non-supported 'call' member on a native class, or a " | 3363 "Non-supported 'call' member on a native class, or a " |
| 3360 "subclass of a native class."), | 3364 "subclass of a native class."), |
| 3361 | 3365 |
| 3362 MessageKind.DIRECTLY_THROWING_NSM: | 3366 MessageKind.DIRECTLY_THROWING_NSM: |
| 3363 const MessageTemplate(MessageKind.DIRECTLY_THROWING_NSM, | 3367 const MessageTemplate(MessageKind.DIRECTLY_THROWING_NSM, |
| 3364 "This 'noSuchMethod' implementation is guaranteed to throw an " | 3368 "This 'noSuchMethod' implementation is guaranteed to throw an " |
| 3365 "exception. The generated code will be smaller if it is " | 3369 "exception. The generated code will be smaller if it is " |
| (...skipping 20 matching lines...) Expand all Loading... |
| 3386 "Unsupported version of package:lookup_map.", | 3390 "Unsupported version of package:lookup_map.", |
| 3387 howToFix: DONT_KNOW_HOW_TO_FIX), | 3391 howToFix: DONT_KNOW_HOW_TO_FIX), |
| 3388 | 3392 |
| 3389 }; // End of TEMPLATES. | 3393 }; // End of TEMPLATES. |
| 3390 | 3394 |
| 3391 /// Padding used before and between import chains in the message for | 3395 /// Padding used before and between import chains in the message for |
| 3392 /// [MessageKind.IMPORT_EXPERIMENTAL_MIRRORS]. | 3396 /// [MessageKind.IMPORT_EXPERIMENTAL_MIRRORS]. |
| 3393 static const String IMPORT_EXPERIMENTAL_MIRRORS_PADDING = '\n* '; | 3397 static const String IMPORT_EXPERIMENTAL_MIRRORS_PADDING = '\n* '; |
| 3394 | 3398 |
| 3395 /// Padding used before and between import chains in the message for | 3399 /// Padding used before and between import chains in the message for |
| 3400 /// [MessageKind.MIRRORS_LIBRARY_NOT_SUPPORT_BY_BACKEND]. |
| 3401 static const String MIRRORS_NOT_SUPPORTED_BY_BACKEND_PADDING = '\n '; |
| 3402 |
| 3403 /// Padding used before and between import chains in the message for |
| 3396 /// [MessageKind.DISALLOWED_LIBRARY_IMPORT]. | 3404 /// [MessageKind.DISALLOWED_LIBRARY_IMPORT]. |
| 3397 static const String DISALLOWED_LIBRARY_IMPORT_PADDING = '\n '; | 3405 static const String DISALLOWED_LIBRARY_IMPORT_PADDING = '\n '; |
| 3398 | 3406 |
| 3399 toString() => template; | 3407 toString() => template; |
| 3400 | 3408 |
| 3401 Message message([Map arguments = const {}, bool terse = false]) { | 3409 Message message([Map arguments = const {}, bool terse = false]) { |
| 3402 return new Message(this, arguments, terse); | 3410 return new Message(this, arguments, terse); |
| 3403 } | 3411 } |
| 3404 | 3412 |
| 3405 bool get hasHowToFix => howToFix != null && howToFix != DONT_KNOW_HOW_TO_FIX; | 3413 bool get hasHowToFix => howToFix != null && howToFix != DONT_KNOW_HOW_TO_FIX; |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3453 static String convertToString(value) { | 3461 static String convertToString(value) { |
| 3454 if (value is ErrorToken) { | 3462 if (value is ErrorToken) { |
| 3455 // Shouldn't happen. | 3463 // Shouldn't happen. |
| 3456 return value.assertionMessage; | 3464 return value.assertionMessage; |
| 3457 } else if (value is Token) { | 3465 } else if (value is Token) { |
| 3458 value = value.value; | 3466 value = value.value; |
| 3459 } | 3467 } |
| 3460 return '$value'; | 3468 return '$value'; |
| 3461 } | 3469 } |
| 3462 } | 3470 } |
| OLD | NEW |