| 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 2603 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2614 * Unnecessary type checks, the result is always true. | 2614 * Unnecessary type checks, the result is always true. |
| 2615 */ | 2615 */ |
| 2616 static const HintCode UNNECESSARY_TYPE_CHECK_FALSE = const HintCode('UNNECESSA
RY_TYPE_CHECK_FALSE', "Unnecessary type check, the result is always false"); | 2616 static const HintCode UNNECESSARY_TYPE_CHECK_FALSE = const HintCode('UNNECESSA
RY_TYPE_CHECK_FALSE', "Unnecessary type check, the result is always false"); |
| 2617 | 2617 |
| 2618 /** | 2618 /** |
| 2619 * Unnecessary type checks, the result is always false. | 2619 * Unnecessary type checks, the result is always false. |
| 2620 */ | 2620 */ |
| 2621 static const HintCode UNNECESSARY_TYPE_CHECK_TRUE = const HintCode('UNNECESSAR
Y_TYPE_CHECK_TRUE', "Unnecessary type check, the result is always true"); | 2621 static const HintCode UNNECESSARY_TYPE_CHECK_TRUE = const HintCode('UNNECESSAR
Y_TYPE_CHECK_TRUE', "Unnecessary type check, the result is always true"); |
| 2622 | 2622 |
| 2623 /** | 2623 /** |
| 2624 * See [Modifier.IS_USED_IN_LIBRARY]. |
| 2625 */ |
| 2626 static const HintCode UNUSED_ELEMENT = const HintCode('UNUSED_ELEMENT', "The {
0} '{1}' is not used"); |
| 2627 |
| 2628 /** |
| 2624 * Unused imports are imports which are never used. | 2629 * Unused imports are imports which are never used. |
| 2625 */ | 2630 */ |
| 2626 static const HintCode UNUSED_IMPORT = const HintCode('UNUSED_IMPORT', "Unused
import"); | 2631 static const HintCode UNUSED_IMPORT = const HintCode('UNUSED_IMPORT', "Unused
import"); |
| 2627 | 2632 |
| 2628 /** | 2633 /** |
| 2629 * Unused local variables are local varaibles which are never read. | 2634 * Unused local variables are local varaibles which are never read. |
| 2630 */ | 2635 */ |
| 2631 static const HintCode UNUSED_LOCAL_VARIABLE = const HintCode('UNUSED_LOCAL_VAR
IABLE', "The value of the local variable '{0}' is not used"); | 2636 static const HintCode UNUSED_LOCAL_VARIABLE = const HintCode('UNUSED_LOCAL_VAR
IABLE', "The value of the local variable '{0}' is not used"); |
| 2632 | 2637 |
| 2633 /** | 2638 /** |
| (...skipping 1434 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4068 * Initialize a newly created error code to have the given [name]. | 4073 * Initialize a newly created error code to have the given [name]. |
| 4069 */ | 4074 */ |
| 4070 const TodoCode(String name) : super(name, "{0}"); | 4075 const TodoCode(String name) : super(name, "{0}"); |
| 4071 | 4076 |
| 4072 @override | 4077 @override |
| 4073 ErrorSeverity get errorSeverity => ErrorSeverity.INFO; | 4078 ErrorSeverity get errorSeverity => ErrorSeverity.INFO; |
| 4074 | 4079 |
| 4075 @override | 4080 @override |
| 4076 ErrorType get type => ErrorType.TODO; | 4081 ErrorType get type => ErrorType.TODO; |
| 4077 } | 4082 } |
| OLD | NEW |