| 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/error/listener.dart'; | 9 import 'package:analyzer/error/listener.dart'; |
| 10 import 'package:analyzer/src/dart/scanner/scanner.dart' show ScannerErrorCode; | 10 import 'package:analyzer/src/dart/scanner/scanner.dart' show ScannerErrorCode; |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 111 CompileTimeErrorCode.EXTENDS_DISALLOWED_CLASS, | 111 CompileTimeErrorCode.EXTENDS_DISALLOWED_CLASS, |
| 112 CompileTimeErrorCode.EXTENDS_ENUM, | 112 CompileTimeErrorCode.EXTENDS_ENUM, |
| 113 CompileTimeErrorCode.EXTENDS_NON_CLASS, | 113 CompileTimeErrorCode.EXTENDS_NON_CLASS, |
| 114 CompileTimeErrorCode.EXTRA_POSITIONAL_ARGUMENTS, | 114 CompileTimeErrorCode.EXTRA_POSITIONAL_ARGUMENTS, |
| 115 CompileTimeErrorCode.FIELD_INITIALIZED_BY_MULTIPLE_INITIALIZERS, | 115 CompileTimeErrorCode.FIELD_INITIALIZED_BY_MULTIPLE_INITIALIZERS, |
| 116 CompileTimeErrorCode.FIELD_INITIALIZED_IN_PARAMETER_AND_INITIALIZER, | 116 CompileTimeErrorCode.FIELD_INITIALIZED_IN_PARAMETER_AND_INITIALIZER, |
| 117 CompileTimeErrorCode.FIELD_INITIALIZER_FACTORY_CONSTRUCTOR, | 117 CompileTimeErrorCode.FIELD_INITIALIZER_FACTORY_CONSTRUCTOR, |
| 118 CompileTimeErrorCode.FIELD_INITIALIZER_OUTSIDE_CONSTRUCTOR, | 118 CompileTimeErrorCode.FIELD_INITIALIZER_OUTSIDE_CONSTRUCTOR, |
| 119 CompileTimeErrorCode.FIELD_INITIALIZER_REDIRECTING_CONSTRUCTOR, | 119 CompileTimeErrorCode.FIELD_INITIALIZER_REDIRECTING_CONSTRUCTOR, |
| 120 CompileTimeErrorCode.FINAL_INITIALIZED_MULTIPLE_TIMES, | 120 CompileTimeErrorCode.FINAL_INITIALIZED_MULTIPLE_TIMES, |
| 121 CompileTimeErrorCode.GENERIC_FUNCTION_TYPED_PARAM_UNSUPPORTED, |
| 121 CompileTimeErrorCode.GETTER_AND_METHOD_WITH_SAME_NAME, | 122 CompileTimeErrorCode.GETTER_AND_METHOD_WITH_SAME_NAME, |
| 122 CompileTimeErrorCode.IMPLEMENTS_DEFERRED_CLASS, | 123 CompileTimeErrorCode.IMPLEMENTS_DEFERRED_CLASS, |
| 123 CompileTimeErrorCode.IMPLEMENTS_DISALLOWED_CLASS, | 124 CompileTimeErrorCode.IMPLEMENTS_DISALLOWED_CLASS, |
| 124 CompileTimeErrorCode.IMPLEMENTS_DYNAMIC, | 125 CompileTimeErrorCode.IMPLEMENTS_DYNAMIC, |
| 125 CompileTimeErrorCode.IMPLEMENTS_ENUM, | 126 CompileTimeErrorCode.IMPLEMENTS_ENUM, |
| 126 CompileTimeErrorCode.IMPLEMENTS_NON_CLASS, | 127 CompileTimeErrorCode.IMPLEMENTS_NON_CLASS, |
| 127 CompileTimeErrorCode.IMPLEMENTS_REPEATED, | 128 CompileTimeErrorCode.IMPLEMENTS_REPEATED, |
| 128 CompileTimeErrorCode.IMPLEMENTS_SUPER_CLASS, | 129 CompileTimeErrorCode.IMPLEMENTS_SUPER_CLASS, |
| 129 CompileTimeErrorCode.IMPLICIT_THIS_REFERENCE_IN_INITIALIZER, | 130 CompileTimeErrorCode.IMPLICIT_THIS_REFERENCE_IN_INITIALIZER, |
| 130 CompileTimeErrorCode.IMPORT_INTERNAL_LIBRARY, | 131 CompileTimeErrorCode.IMPORT_INTERNAL_LIBRARY, |
| (...skipping 771 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 902 | 903 |
| 903 @override | 904 @override |
| 904 int get hashCode => ordinal; | 905 int get hashCode => ordinal; |
| 905 | 906 |
| 906 @override | 907 @override |
| 907 int compareTo(ErrorProperty other) => ordinal - other.ordinal; | 908 int compareTo(ErrorProperty other) => ordinal - other.ordinal; |
| 908 | 909 |
| 909 @override | 910 @override |
| 910 String toString() => name; | 911 String toString() => name; |
| 911 } | 912 } |
| OLD | NEW |