| 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 | 8 |
| 9 import 'ast.dart' show AstNode; | 9 import 'ast.dart' show AstNode; |
| 10 import 'element.dart'; | 10 import 'element.dart'; |
| (...skipping 2824 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2835 /** | 2835 /** |
| 2836 * Polymer specific semantic problems. | 2836 * Polymer specific semantic problems. |
| 2837 */ | 2837 */ |
| 2838 static const ErrorType POLYMER = | 2838 static const ErrorType POLYMER = |
| 2839 const ErrorType('POLYMER', 7, ErrorSeverity.INFO); | 2839 const ErrorType('POLYMER', 7, ErrorSeverity.INFO); |
| 2840 | 2840 |
| 2841 /** | 2841 /** |
| 2842 * Lint warnings describe style and best practice recommendations that can be
used to formalize a project's style | 2842 * Lint warnings describe style and best practice recommendations that can be
used to formalize a project's style |
| 2843 * guidelines. | 2843 * guidelines. |
| 2844 */ | 2844 */ |
| 2845 static const ErrorType LINT = const ErrorType('LINT', 9, ErrorSeverity.INFO); | 2845 static const ErrorType LINT = const ErrorType('LINT', 8, ErrorSeverity.INFO); |
| 2846 | 2846 |
| 2847 static const List<ErrorType> values = const [ | 2847 static const List<ErrorType> values = const [ |
| 2848 TODO, | 2848 TODO, |
| 2849 HINT, | 2849 HINT, |
| 2850 COMPILE_TIME_ERROR, | 2850 COMPILE_TIME_ERROR, |
| 2851 CHECKED_MODE_COMPILE_TIME_ERROR, | 2851 CHECKED_MODE_COMPILE_TIME_ERROR, |
| 2852 STATIC_WARNING, | 2852 STATIC_WARNING, |
| 2853 STATIC_TYPE_WARNING, | 2853 STATIC_TYPE_WARNING, |
| 2854 SYNTACTIC_ERROR, | 2854 SYNTACTIC_ERROR, |
| 2855 POLYMER, | 2855 POLYMER, |
| (...skipping 2177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5033 * Initialize a newly created error code to have the given [name]. | 5033 * Initialize a newly created error code to have the given [name]. |
| 5034 */ | 5034 */ |
| 5035 const TodoCode(String name) : super(name, "{0}"); | 5035 const TodoCode(String name) : super(name, "{0}"); |
| 5036 | 5036 |
| 5037 @override | 5037 @override |
| 5038 ErrorSeverity get errorSeverity => ErrorSeverity.INFO; | 5038 ErrorSeverity get errorSeverity => ErrorSeverity.INFO; |
| 5039 | 5039 |
| 5040 @override | 5040 @override |
| 5041 ErrorType get type => ErrorType.TODO; | 5041 ErrorType get type => ErrorType.TODO; |
| 5042 } | 5042 } |
| OLD | NEW |