OLD | NEW |
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2016, 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 import 'package:analyzer/error/error.dart' | 5 import 'package:analyzer/error/error.dart' |
6 show errorCodeValues, errorCodeByUniqueName; | 6 show errorCodeValues, errorCodeByUniqueName; |
7 | 7 |
8 /** | 8 /** |
9 * An error code associated with an [AnalysisError]. | 9 * An error code associated with an [AnalysisError]. |
10 * | 10 * |
11 * Generally, we want to provide messages that consist of three sentences. From | 11 * Generally, we want to provide messages that consist of three sentences. From |
(...skipping 338 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
350 */ | 350 */ |
351 const ScannerErrorCode(String name, String message, [String correction]) | 351 const ScannerErrorCode(String name, String message, [String correction]) |
352 : super(name, message, correction); | 352 : super(name, message, correction); |
353 | 353 |
354 @override | 354 @override |
355 ErrorSeverity get errorSeverity => ErrorSeverity.ERROR; | 355 ErrorSeverity get errorSeverity => ErrorSeverity.ERROR; |
356 | 356 |
357 @override | 357 @override |
358 ErrorType get type => ErrorType.SYNTACTIC_ERROR; | 358 ErrorType get type => ErrorType.SYNTACTIC_ERROR; |
359 } | 359 } |
OLD | NEW |