| 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 * The messages in this file should meet the following guide lines: | 6 * The messages in this file should meet the following guide lines: |
| 7 * | 7 * |
| 8 * 1. The message should be a complete sentence starting with an uppercase | 8 * 1. The message should be a complete sentence starting with an uppercase |
| 9 * letter, and ending with a period. | 9 * letter, and ending with a period. |
| 10 * | 10 * |
| (...skipping 2075 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2086 examples: const [ | 2086 examples: const [ |
| 2087 const { | 2087 const { |
| 2088 'main.dart': """ | 2088 'main.dart': """ |
| 2089 library lib.foo; | 2089 library lib.foo; |
| 2090 | 2090 |
| 2091 part 'part.dart'; | 2091 part 'part.dart'; |
| 2092 | 2092 |
| 2093 main() {} | 2093 main() {} |
| 2094 """, | 2094 """, |
| 2095 'part.dart': """ | 2095 'part.dart': """ |
| 2096 part of "main.dart"; | 2096 part of 'not-main.dart'; |
| 2097 """ | 2097 """ |
| 2098 } | 2098 } |
| 2099 ]), | 2099 ]), |
| 2100 | 2100 |
| 2101 MessageKind.MISSING_LIBRARY_NAME: const MessageTemplate( | 2101 MessageKind.MISSING_LIBRARY_NAME: const MessageTemplate( |
| 2102 MessageKind.MISSING_LIBRARY_NAME, | 2102 MessageKind.MISSING_LIBRARY_NAME, |
| 2103 "Library has no name. Part directive expected library name " | 2103 "Library has no name. Part directive expected library name " |
| 2104 "to be '#{libraryName}'.", | 2104 "to be '#{libraryName}'.", |
| 2105 howToFix: "Try adding 'library #{libraryName};' to the library.", | 2105 howToFix: "Try adding 'library #{libraryName};' to the library.", |
| 2106 examples: const [ | 2106 examples: const [ |
| (...skipping 1732 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3839 static String convertToString(value) { | 3839 static String convertToString(value) { |
| 3840 if (value is ErrorToken) { | 3840 if (value is ErrorToken) { |
| 3841 // Shouldn't happen. | 3841 // Shouldn't happen. |
| 3842 return value.assertionMessage; | 3842 return value.assertionMessage; |
| 3843 } else if (value is Token) { | 3843 } else if (value is Token) { |
| 3844 value = value.value; | 3844 value = value.value; |
| 3845 } | 3845 } |
| 3846 return '$value'; | 3846 return '$value'; |
| 3847 } | 3847 } |
| 3848 } | 3848 } |
| OLD | NEW |