| 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 2608 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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]. | 2624 * See [Modifier.IS_USED_IN_LIBRARY]. |
| 2625 */ | 2625 */ |
| 2626 static const HintCode UNUSED_ELEMENT = const HintCode('UNUSED_ELEMENT', "The {
0} '{1}' is not used"); | 2626 static const HintCode UNUSED_ELEMENT = const HintCode('UNUSED_ELEMENT', "The {
0} '{1}' is not used"); |
| 2627 | 2627 |
| 2628 /** | 2628 /** |
| 2629 * Unused fields are fields which are never read. |
| 2630 */ |
| 2631 static const HintCode UNUSED_FIELD = const HintCode('UNUSED_FIELD', "The value
of the field '{0}' is not used"); |
| 2632 |
| 2633 /** |
| 2629 * Unused imports are imports which are never used. | 2634 * Unused imports are imports which are never used. |
| 2630 */ | 2635 */ |
| 2631 static const HintCode UNUSED_IMPORT = const HintCode('UNUSED_IMPORT', "Unused
import"); | 2636 static const HintCode UNUSED_IMPORT = const HintCode('UNUSED_IMPORT', "Unused
import"); |
| 2632 | 2637 |
| 2633 /** | 2638 /** |
| 2634 * Unused local variables are local varaibles which are never read. | 2639 * Unused local variables are local varaibles which are never read. |
| 2635 */ | 2640 */ |
| 2636 static const HintCode UNUSED_LOCAL_VARIABLE = const HintCode('UNUSED_LOCAL_VAR
IABLE', "The value of the local variable '{0}' is not used"); | 2641 static const HintCode UNUSED_LOCAL_VARIABLE = const HintCode('UNUSED_LOCAL_VAR
IABLE', "The value of the local variable '{0}' is not used"); |
| 2637 | 2642 |
| 2638 /** | 2643 /** |
| (...skipping 1434 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4073 * Initialize a newly created error code to have the given [name]. | 4078 * Initialize a newly created error code to have the given [name]. |
| 4074 */ | 4079 */ |
| 4075 const TodoCode(String name) : super(name, "{0}"); | 4080 const TodoCode(String name) : super(name, "{0}"); |
| 4076 | 4081 |
| 4077 @override | 4082 @override |
| 4078 ErrorSeverity get errorSeverity => ErrorSeverity.INFO; | 4083 ErrorSeverity get errorSeverity => ErrorSeverity.INFO; |
| 4079 | 4084 |
| 4080 @override | 4085 @override |
| 4081 ErrorType get type => ErrorType.TODO; | 4086 ErrorType get type => ErrorType.TODO; |
| 4082 } | 4087 } |
| OLD | NEW |