| OLD | NEW |
| 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, 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 library engine.error; | 5 library engine.error; |
| 6 | 6 |
| 7 import 'dart:collection'; | 7 import 'dart:collection'; |
| 8 import 'java_core.dart'; | 8 import 'java_core.dart'; |
| 9 import 'source.dart'; | 9 import 'source.dart'; |
| 10 import 'scanner.dart' show Token; | 10 import 'scanner.dart' show Token; |
| (...skipping 3262 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3273 static const StaticWarningCode EQUAL_KEYS_IN_MAP = const StaticWarningCode('EQ
UAL_KEYS_IN_MAP', "Keys in a map cannot be equal"); | 3273 static const StaticWarningCode EQUAL_KEYS_IN_MAP = const StaticWarningCode('EQ
UAL_KEYS_IN_MAP', "Keys in a map cannot be equal"); |
| 3274 | 3274 |
| 3275 /** | 3275 /** |
| 3276 * 14.2 Exports: It is a static warning to export two different libraries with | 3276 * 14.2 Exports: It is a static warning to export two different libraries with |
| 3277 * the same name. | 3277 * the same name. |
| 3278 * | 3278 * |
| 3279 * @param uri1 the uri pointing to a first library | 3279 * @param uri1 the uri pointing to a first library |
| 3280 * @param uri2 the uri pointing to a second library | 3280 * @param uri2 the uri pointing to a second library |
| 3281 * @param name the shared name of the exported libraries | 3281 * @param name the shared name of the exported libraries |
| 3282 */ | 3282 */ |
| 3283 static const StaticWarningCode EXPORT_DUPLICATED_LIBRARY_NAME = const StaticWa
rningCode('EXPORT_DUPLICATED_LIBRARY_NAME', "The exported libraries '{0}' and '{
1}' should not have the same name '{2}'"); | 3283 static const StaticWarningCode EXPORT_DUPLICATED_LIBRARY_NAMED |
| 3284 = const StaticWarningCode( |
| 3285 'EXPORT_DUPLICATED_LIBRARY_NAMED', |
| 3286 "The exported libraries '{0}' and '{1}' cannot have the same name '{2}
'"); |
| 3287 |
| 3288 /** |
| 3289 * 14.2 Exports: It is a static warning to export two different libraries with |
| 3290 * the same name. |
| 3291 * |
| 3292 * @param uri1 the uri pointing to a first library |
| 3293 * @param uri2 the uri pointing to a second library |
| 3294 */ |
| 3295 static const StaticWarningCode EXPORT_DUPLICATED_LIBRARY_UNNAMED |
| 3296 = const StaticWarningCode( |
| 3297 'EXPORT_DUPLICATED_LIBRARY_UNNAMED', |
| 3298 "The exported libraries '{0}' and '{1}' cannot both be unnamed"); |
| 3284 | 3299 |
| 3285 /** | 3300 /** |
| 3286 * 12.14.2 Binding Actuals to Formals: It is a static warning if <i>m < | 3301 * 12.14.2 Binding Actuals to Formals: It is a static warning if <i>m < |
| 3287 * h</i> or if <i>m > n</i>. | 3302 * h</i> or if <i>m > n</i>. |
| 3288 * | 3303 * |
| 3289 * @param requiredCount the maximum number of positional arguments | 3304 * @param requiredCount the maximum number of positional arguments |
| 3290 * @param argumentCount the actual number of positional arguments given | 3305 * @param argumentCount the actual number of positional arguments given |
| 3291 * @see [NOT_ENOUGH_REQUIRED_ARGUMENTS] | 3306 * @see [NOT_ENOUGH_REQUIRED_ARGUMENTS] |
| 3292 */ | 3307 */ |
| 3293 static const StaticWarningCode EXTRA_POSITIONAL_ARGUMENTS = const StaticWarnin
gCode('EXTRA_POSITIONAL_ARGUMENTS', "{0} positional arguments expected, but {1}
found"); | 3308 static const StaticWarningCode EXTRA_POSITIONAL_ARGUMENTS = const StaticWarnin
gCode('EXTRA_POSITIONAL_ARGUMENTS', "{0} positional arguments expected, but {1}
found"); |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3360 static const StaticWarningCode FUNCTION_WITHOUT_CALL = const StaticWarningCode
('FUNCTION_WITHOUT_CALL', "Concrete classes that implement Function must impleme
nt the method call()"); | 3375 static const StaticWarningCode FUNCTION_WITHOUT_CALL = const StaticWarningCode
('FUNCTION_WITHOUT_CALL', "Concrete classes that implement Function must impleme
nt the method call()"); |
| 3361 | 3376 |
| 3362 /** | 3377 /** |
| 3363 * 14.1 Imports: It is a static warning to import two different libraries with | 3378 * 14.1 Imports: It is a static warning to import two different libraries with |
| 3364 * the same name. | 3379 * the same name. |
| 3365 * | 3380 * |
| 3366 * @param uri1 the uri pointing to a first library | 3381 * @param uri1 the uri pointing to a first library |
| 3367 * @param uri2 the uri pointing to a second library | 3382 * @param uri2 the uri pointing to a second library |
| 3368 * @param name the shared name of the imported libraries | 3383 * @param name the shared name of the imported libraries |
| 3369 */ | 3384 */ |
| 3370 static const StaticWarningCode IMPORT_DUPLICATED_LIBRARY_NAME = const StaticWa
rningCode('IMPORT_DUPLICATED_LIBRARY_NAME', "The imported libraries '{0}' and '{
1}' should not have the same name '{2}'"); | 3385 static const StaticWarningCode IMPORT_DUPLICATED_LIBRARY_NAMED |
| 3386 = const StaticWarningCode( |
| 3387 'IMPORT_DUPLICATED_LIBRARY_NAMED', |
| 3388 "The imported libraries '{0}' and '{1}' cannot have the same name '{2}
'"); |
| 3389 |
| 3390 /** |
| 3391 * 14.1 Imports: It is a static warning to import two different libraries with |
| 3392 * the same name. |
| 3393 * |
| 3394 * @param uri1 the uri pointing to a first library |
| 3395 * @param uri2 the uri pointing to a second library |
| 3396 */ |
| 3397 static const StaticWarningCode IMPORT_DUPLICATED_LIBRARY_UNNAMED |
| 3398 = const StaticWarningCode( |
| 3399 'IMPORT_DUPLICATED_LIBRARY_UNNAMED', |
| 3400 "The imported libraries '{0}' and '{1}' cannot both be unnamed"); |
| 3371 | 3401 |
| 3372 /** | 3402 /** |
| 3373 * 14.1 Imports: It is a static warning if the specified URI of a deferred | 3403 * 14.1 Imports: It is a static warning if the specified URI of a deferred |
| 3374 * import does not refer to a library declaration. | 3404 * import does not refer to a library declaration. |
| 3375 * | 3405 * |
| 3376 * @param uri the uri pointing to a non-library declaration | 3406 * @param uri the uri pointing to a non-library declaration |
| 3377 * @see [CompileTimeErrorCode.IMPORT_OF_NON_LIBRARY] | 3407 * @see [CompileTimeErrorCode.IMPORT_OF_NON_LIBRARY] |
| 3378 */ | 3408 */ |
| 3379 static const StaticWarningCode IMPORT_OF_NON_LIBRARY = const StaticWarningCode
('IMPORT_OF_NON_LIBRARY', "The imported library '{0}' must not have a part-of di
rective"); | 3409 static const StaticWarningCode IMPORT_OF_NON_LIBRARY = const StaticWarningCode
('IMPORT_OF_NON_LIBRARY', "The imported library '{0}' must not have a part-of di
rective"); |
| 3380 | 3410 |
| (...skipping 643 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4024 * Initialize a newly created error code to have the given [name]. | 4054 * Initialize a newly created error code to have the given [name]. |
| 4025 */ | 4055 */ |
| 4026 const TodoCode(String name) : super(name, "{0}"); | 4056 const TodoCode(String name) : super(name, "{0}"); |
| 4027 | 4057 |
| 4028 @override | 4058 @override |
| 4029 ErrorSeverity get errorSeverity => ErrorSeverity.INFO; | 4059 ErrorSeverity get errorSeverity => ErrorSeverity.INFO; |
| 4030 | 4060 |
| 4031 @override | 4061 @override |
| 4032 ErrorType get type => ErrorType.TODO; | 4062 ErrorType get type => ErrorType.TODO; |
| 4033 } | 4063 } |
| OLD | NEW |