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 238 matching lines...) Loading... |
249 INVALID_OVERRIDDEN_METHOD, | 249 INVALID_OVERRIDDEN_METHOD, |
250 INVALID_OVERRIDDEN_SETTER, | 250 INVALID_OVERRIDDEN_SETTER, |
251 INVALID_OVERRIDE_FIELD, | 251 INVALID_OVERRIDE_FIELD, |
252 INVALID_OVERRIDE_FIELD_WITH_GETTER, | 252 INVALID_OVERRIDE_FIELD_WITH_GETTER, |
253 INVALID_OVERRIDE_FIELD_WITH_SETTER, | 253 INVALID_OVERRIDE_FIELD_WITH_SETTER, |
254 INVALID_OVERRIDE_GETTER, | 254 INVALID_OVERRIDE_GETTER, |
255 INVALID_OVERRIDE_GETTER_WITH_FIELD, | 255 INVALID_OVERRIDE_GETTER_WITH_FIELD, |
256 INVALID_OVERRIDE_METHOD, | 256 INVALID_OVERRIDE_METHOD, |
257 INVALID_OVERRIDE_SETTER, | 257 INVALID_OVERRIDE_SETTER, |
258 INVALID_OVERRIDE_SETTER_WITH_FIELD, | 258 INVALID_OVERRIDE_SETTER_WITH_FIELD, |
| 259 INVALID_PACKAGE_CONFIG, |
259 INVALID_PACKAGE_URI, | 260 INVALID_PACKAGE_URI, |
260 INVALID_PARAMETER, | 261 INVALID_PARAMETER, |
261 INVALID_RECEIVER_IN_INITIALIZER, | 262 INVALID_RECEIVER_IN_INITIALIZER, |
262 INVALID_SOURCE_FILE_LOCATION, | 263 INVALID_SOURCE_FILE_LOCATION, |
263 INVALID_SYMBOL, | 264 INVALID_SYMBOL, |
264 INVALID_SYNC_MODIFIER, | 265 INVALID_SYNC_MODIFIER, |
265 INVALID_TYPE_VARIABLE_BOUND, | 266 INVALID_TYPE_VARIABLE_BOUND, |
266 INVALID_UNNAMED_CONSTRUCTOR_NAME, | 267 INVALID_UNNAMED_CONSTRUCTOR_NAME, |
267 INVALID_URI, | 268 INVALID_URI, |
268 INVALID_USE_OF_SUPER, | 269 INVALID_USE_OF_SUPER, |
(...skipping 1957 matching lines...) Loading... |
2226 "'#{uri}' is not a valid URI.", | 2227 "'#{uri}' is not a valid URI.", |
2227 howToFix: DONT_KNOW_HOW_TO_FIX, | 2228 howToFix: DONT_KNOW_HOW_TO_FIX, |
2228 examples: const [ | 2229 examples: const [ |
2229 """ | 2230 """ |
2230 // can't have a '[' in a URI | 2231 // can't have a '[' in a URI |
2231 import '../../Udyn[mic ils/expect.dart'; | 2232 import '../../Udyn[mic ils/expect.dart'; |
2232 | 2233 |
2233 main() {} | 2234 main() {} |
2234 """]), | 2235 """]), |
2235 | 2236 |
| 2237 MessageKind.INVALID_PACKAGE_CONFIG: |
| 2238 const MessageTemplate(MessageKind.INVALID_PACKAGE_CONFIG, |
| 2239 """Package config file '#{uri}' is invalid. |
| 2240 #{exception}""", |
| 2241 howToFix: DONT_KNOW_HOW_TO_FIX |
| 2242 ), |
| 2243 |
2236 MessageKind.INVALID_PACKAGE_URI: | 2244 MessageKind.INVALID_PACKAGE_URI: |
2237 const MessageTemplate(MessageKind.INVALID_PACKAGE_URI, | 2245 const MessageTemplate(MessageKind.INVALID_PACKAGE_URI, |
2238 "'#{uri}' is not a valid package URI (#{exception}).", | 2246 "'#{uri}' is not a valid package URI (#{exception}).", |
2239 howToFix: DONT_KNOW_HOW_TO_FIX, | 2247 howToFix: DONT_KNOW_HOW_TO_FIX, |
2240 examples: const [ | 2248 examples: const [ |
2241 """ | 2249 """ |
2242 // can't have a 'top level' package URI | 2250 // can't have a 'top level' package URI |
2243 import 'package:foo.dart'; | 2251 import 'package:foo.dart'; |
2244 | 2252 |
2245 main() {} | 2253 main() {} |
(...skipping 1100 matching lines...) Loading... |
3346 static String convertToString(value) { | 3354 static String convertToString(value) { |
3347 if (value is ErrorToken) { | 3355 if (value is ErrorToken) { |
3348 // Shouldn't happen. | 3356 // Shouldn't happen. |
3349 return value.assertionMessage; | 3357 return value.assertionMessage; |
3350 } else if (value is Token) { | 3358 } else if (value is Token) { |
3351 value = value.value; | 3359 value = value.value; |
3352 } | 3360 } |
3353 return '$value'; | 3361 return '$value'; |
3354 } | 3362 } |
3355 } | 3363 } |
OLD | NEW |