| 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 analyzer.error.error; | 5 library analyzer.error.error; |
| 6 | 6 |
| 7 import 'dart:collection'; | 7 import 'dart:collection'; |
| 8 | 8 |
| 9 import 'package:analyzer/dart/element/element.dart'; | 9 import 'package:analyzer/dart/element/element.dart'; |
| 10 import 'package:analyzer/error/listener.dart'; | 10 import 'package:analyzer/error/listener.dart'; |
| 11 import 'package:analyzer/src/dart/scanner/scanner.dart' show ScannerErrorCode; | 11 import 'package:analyzer/src/dart/scanner/scanner.dart' show ScannerErrorCode; |
| 12 import 'package:analyzer/src/error/codes.dart'; | 12 import 'package:analyzer/src/error/codes.dart'; |
| 13 import 'package:analyzer/src/generated/java_core.dart'; | 13 import 'package:analyzer/src/generated/java_core.dart'; |
| 14 import 'package:analyzer/src/generated/parser.dart' show ParserErrorCode; | 14 import 'package:analyzer/src/generated/parser.dart' show ParserErrorCode; |
| 15 import 'package:analyzer/src/generated/source.dart'; | 15 import 'package:analyzer/src/generated/source.dart'; |
| 16 import 'package:front_end/src/base/errors.dart'; |
| 16 import 'package:front_end/src/scanner/errors.dart'; | 17 import 'package:front_end/src/scanner/errors.dart'; |
| 17 | 18 |
| 18 export 'package:front_end/src/scanner/errors.dart' | 19 export 'package:front_end/src/base/errors.dart' |
| 19 show ErrorCode, ErrorSeverity, ErrorType; | 20 show ErrorCode, ErrorSeverity, ErrorType; |
| 20 | 21 |
| 21 const List<ErrorCode> errorCodeValues = const [ | 22 const List<ErrorCode> errorCodeValues = const [ |
| 22 // | 23 // |
| 23 // Manually generated. You can mostly reproduce this list by running the | 24 // Manually generated. You can mostly reproduce this list by running the |
| 24 // following command from the root of the analyzer package: | 25 // following command from the root of the analyzer package: |
| 25 // | 26 // |
| 26 // > cat | 27 // > cat |
| 27 // lib/src/analysis_options/error/option_codes.dart'; | 28 // lib/src/analysis_options/error/option_codes.dart'; |
| 28 // lib/src/dart/error/hint_codes.dart'; | 29 // lib/src/dart/error/hint_codes.dart'; |
| (...skipping 869 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 898 | 899 |
| 899 @override | 900 @override |
| 900 int get hashCode => ordinal; | 901 int get hashCode => ordinal; |
| 901 | 902 |
| 902 @override | 903 @override |
| 903 int compareTo(ErrorProperty other) => ordinal - other.ordinal; | 904 int compareTo(ErrorProperty other) => ordinal - other.ordinal; |
| 904 | 905 |
| 905 @override | 906 @override |
| 906 String toString() => name; | 907 String toString() => name; |
| 907 } | 908 } |
| OLD | NEW |