Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(358)

Side by Side Diff: pkg/analyzer/lib/error/error.dart

Issue 2544883007: Add ResolverErrorCode to errorCodeValues. (Closed)
Patch Set: Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/resolver.dart' show ResolverErrorCode;
13 import 'package:analyzer/src/generated/java_core.dart'; 14 import 'package:analyzer/src/generated/java_core.dart';
14 import 'package:analyzer/src/generated/parser.dart' show ParserErrorCode; 15 import 'package:analyzer/src/generated/parser.dart' show ParserErrorCode;
15 import 'package:analyzer/src/generated/source.dart'; 16 import 'package:analyzer/src/generated/source.dart';
16 import 'package:front_end/src/base/errors.dart'; 17 import 'package:front_end/src/base/errors.dart';
17 import 'package:front_end/src/scanner/errors.dart'; 18 import 'package:front_end/src/scanner/errors.dart';
18 19
19 export 'package:front_end/src/base/errors.dart' 20 export 'package:front_end/src/base/errors.dart'
20 show ErrorCode, ErrorSeverity, ErrorType; 21 show ErrorCode, ErrorSeverity, ErrorType;
21 22
22 const List<ErrorCode> errorCodeValues = const [ 23 const List<ErrorCode> errorCodeValues = const [
(...skipping 412 matching lines...) Expand 10 before | Expand all | Expand 10 after
435 ParserErrorCode.VAR_CLASS, 436 ParserErrorCode.VAR_CLASS,
436 ParserErrorCode.VAR_ENUM, 437 ParserErrorCode.VAR_ENUM,
437 ParserErrorCode.VAR_RETURN_TYPE, 438 ParserErrorCode.VAR_RETURN_TYPE,
438 ParserErrorCode.VAR_TYPEDEF, 439 ParserErrorCode.VAR_TYPEDEF,
439 ParserErrorCode.VOID_PARAMETER, 440 ParserErrorCode.VOID_PARAMETER,
440 ParserErrorCode.VOID_VARIABLE, 441 ParserErrorCode.VOID_VARIABLE,
441 ParserErrorCode.WITH_BEFORE_EXTENDS, 442 ParserErrorCode.WITH_BEFORE_EXTENDS,
442 ParserErrorCode.WITH_WITHOUT_EXTENDS, 443 ParserErrorCode.WITH_WITHOUT_EXTENDS,
443 ParserErrorCode.WRONG_SEPARATOR_FOR_POSITIONAL_PARAMETER, 444 ParserErrorCode.WRONG_SEPARATOR_FOR_POSITIONAL_PARAMETER,
444 ParserErrorCode.WRONG_TERMINATOR_FOR_PARAMETER_GROUP, 445 ParserErrorCode.WRONG_TERMINATOR_FOR_PARAMETER_GROUP,
446 ResolverErrorCode.BREAK_LABEL_ON_SWITCH_MEMBER,
447 ResolverErrorCode.CONTINUE_LABEL_ON_SWITCH,
448 ResolverErrorCode.MISSING_LIBRARY_DIRECTIVE_WITH_PART,
445 ScannerErrorCode.ILLEGAL_CHARACTER, 449 ScannerErrorCode.ILLEGAL_CHARACTER,
446 ScannerErrorCode.MISSING_DIGIT, 450 ScannerErrorCode.MISSING_DIGIT,
447 ScannerErrorCode.MISSING_HEX_DIGIT, 451 ScannerErrorCode.MISSING_HEX_DIGIT,
448 ScannerErrorCode.MISSING_QUOTE, 452 ScannerErrorCode.MISSING_QUOTE,
449 ScannerErrorCode.UNABLE_GET_CONTENT, 453 ScannerErrorCode.UNABLE_GET_CONTENT,
450 ScannerErrorCode.UNTERMINATED_MULTI_LINE_COMMENT, 454 ScannerErrorCode.UNTERMINATED_MULTI_LINE_COMMENT,
451 ScannerErrorCode.UNTERMINATED_STRING_LITERAL, 455 ScannerErrorCode.UNTERMINATED_STRING_LITERAL,
452 StaticTypeWarningCode.EXPECTED_ONE_LIST_TYPE_ARGUMENTS, 456 StaticTypeWarningCode.EXPECTED_ONE_LIST_TYPE_ARGUMENTS,
453 StaticTypeWarningCode.EXPECTED_TWO_MAP_TYPE_ARGUMENTS, 457 StaticTypeWarningCode.EXPECTED_TWO_MAP_TYPE_ARGUMENTS,
454 StaticTypeWarningCode.FOR_IN_OF_INVALID_ELEMENT_TYPE, 458 StaticTypeWarningCode.FOR_IN_OF_INVALID_ELEMENT_TYPE,
(...skipping 436 matching lines...) Expand 10 before | Expand all | Expand 10 after
891 895
892 @override 896 @override
893 int get hashCode => ordinal; 897 int get hashCode => ordinal;
894 898
895 @override 899 @override
896 int compareTo(ErrorProperty other) => ordinal - other.ordinal; 900 int compareTo(ErrorProperty other) => ordinal - other.ordinal;
897 901
898 @override 902 @override
899 String toString() => name; 903 String toString() => name;
900 } 904 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698