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

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

Issue 2993323002: Add a hint to rename .analysis_options files. (Closed)
Patch Set: and hint to global list Created 3 years, 4 months 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 | pkg/analyzer/lib/src/analysis_options/error/option_codes.dart » ('j') | 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/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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 // need to be filled in by hand. 42 // need to be filled in by hand.
43 // 43 //
44 AnalysisOptionsErrorCode.PARSE_ERROR, 44 AnalysisOptionsErrorCode.PARSE_ERROR,
45 AnalysisOptionsErrorCode.INCLUDED_FILE_PARSE_ERROR, 45 AnalysisOptionsErrorCode.INCLUDED_FILE_PARSE_ERROR,
46 AnalysisOptionsWarningCode.INCLUDE_FILE_NOT_FOUND, 46 AnalysisOptionsWarningCode.INCLUDE_FILE_NOT_FOUND,
47 AnalysisOptionsWarningCode.INCLUDED_FILE_WARNING, 47 AnalysisOptionsWarningCode.INCLUDED_FILE_WARNING,
48 AnalysisOptionsWarningCode.UNRECOGNIZED_ERROR_CODE, 48 AnalysisOptionsWarningCode.UNRECOGNIZED_ERROR_CODE,
49 AnalysisOptionsWarningCode.UNSUPPORTED_OPTION_WITH_LEGAL_VALUE, 49 AnalysisOptionsWarningCode.UNSUPPORTED_OPTION_WITH_LEGAL_VALUE,
50 AnalysisOptionsWarningCode.UNSUPPORTED_OPTION_WITH_LEGAL_VALUES, 50 AnalysisOptionsWarningCode.UNSUPPORTED_OPTION_WITH_LEGAL_VALUES,
51 AnalysisOptionsWarningCode.UNSUPPORTED_VALUE, 51 AnalysisOptionsWarningCode.UNSUPPORTED_VALUE,
52 AnalysisOptionsHintCode.DEPRECATED_ANALYSIS_OPTIONS_FILE_NAME,
52 CheckedModeCompileTimeErrorCode.CONST_CONSTRUCTOR_FIELD_TYPE_MISMATCH, 53 CheckedModeCompileTimeErrorCode.CONST_CONSTRUCTOR_FIELD_TYPE_MISMATCH,
53 CheckedModeCompileTimeErrorCode.CONST_CONSTRUCTOR_PARAM_TYPE_MISMATCH, 54 CheckedModeCompileTimeErrorCode.CONST_CONSTRUCTOR_PARAM_TYPE_MISMATCH,
54 CheckedModeCompileTimeErrorCode.CONST_EVAL_THROWS_EXCEPTION, 55 CheckedModeCompileTimeErrorCode.CONST_EVAL_THROWS_EXCEPTION,
55 CheckedModeCompileTimeErrorCode.CONST_FIELD_INITIALIZER_NOT_ASSIGNABLE, 56 CheckedModeCompileTimeErrorCode.CONST_FIELD_INITIALIZER_NOT_ASSIGNABLE,
56 CheckedModeCompileTimeErrorCode.LIST_ELEMENT_TYPE_NOT_ASSIGNABLE, 57 CheckedModeCompileTimeErrorCode.LIST_ELEMENT_TYPE_NOT_ASSIGNABLE,
57 CheckedModeCompileTimeErrorCode.MAP_KEY_TYPE_NOT_ASSIGNABLE, 58 CheckedModeCompileTimeErrorCode.MAP_KEY_TYPE_NOT_ASSIGNABLE,
58 CheckedModeCompileTimeErrorCode.MAP_VALUE_TYPE_NOT_ASSIGNABLE, 59 CheckedModeCompileTimeErrorCode.MAP_VALUE_TYPE_NOT_ASSIGNABLE,
59 CheckedModeCompileTimeErrorCode.VARIABLE_TYPE_MISMATCH, 60 CheckedModeCompileTimeErrorCode.VARIABLE_TYPE_MISMATCH,
60 CompileTimeErrorCode.ACCESS_PRIVATE_ENUM_FIELD, 61 CompileTimeErrorCode.ACCESS_PRIVATE_ENUM_FIELD,
61 CompileTimeErrorCode.AMBIGUOUS_EXPORT, 62 CompileTimeErrorCode.AMBIGUOUS_EXPORT,
(...skipping 785 matching lines...) Expand 10 before | Expand all | Expand 10 after
847 * a single list of errors. 848 * a single list of errors.
848 */ 849 */
849 static List<AnalysisError> mergeLists(List<List<AnalysisError>> errorLists) { 850 static List<AnalysisError> mergeLists(List<List<AnalysisError>> errorLists) {
850 Set<AnalysisError> errors = new HashSet<AnalysisError>(); 851 Set<AnalysisError> errors = new HashSet<AnalysisError>();
851 for (List<AnalysisError> errorList in errorLists) { 852 for (List<AnalysisError> errorList in errorLists) {
852 errors.addAll(errorList); 853 errors.addAll(errorList);
853 } 854 }
854 return errors.toList(); 855 return errors.toList();
855 } 856 }
856 } 857 }
OLDNEW
« no previous file with comments | « no previous file | pkg/analyzer/lib/src/analysis_options/error/option_codes.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698