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

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

Issue 2999303002: map fasta error codes to analyzer (Closed)
Patch Set: rebase Created 3 years, 3 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/dart/error/syntactic_errors.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 340 matching lines...) Expand 10 before | Expand all | Expand 10 after
351 ParserErrorCode.EXTERNAL_AFTER_STATIC, 351 ParserErrorCode.EXTERNAL_AFTER_STATIC,
352 ParserErrorCode.EXTERNAL_CLASS, 352 ParserErrorCode.EXTERNAL_CLASS,
353 ParserErrorCode.EXTERNAL_CONSTRUCTOR_WITH_BODY, 353 ParserErrorCode.EXTERNAL_CONSTRUCTOR_WITH_BODY,
354 ParserErrorCode.EXTERNAL_ENUM, 354 ParserErrorCode.EXTERNAL_ENUM,
355 ParserErrorCode.EXTERNAL_FIELD, 355 ParserErrorCode.EXTERNAL_FIELD,
356 ParserErrorCode.EXTERNAL_GETTER_WITH_BODY, 356 ParserErrorCode.EXTERNAL_GETTER_WITH_BODY,
357 ParserErrorCode.EXTERNAL_METHOD_WITH_BODY, 357 ParserErrorCode.EXTERNAL_METHOD_WITH_BODY,
358 ParserErrorCode.EXTERNAL_OPERATOR_WITH_BODY, 358 ParserErrorCode.EXTERNAL_OPERATOR_WITH_BODY,
359 ParserErrorCode.EXTERNAL_SETTER_WITH_BODY, 359 ParserErrorCode.EXTERNAL_SETTER_WITH_BODY,
360 ParserErrorCode.EXTERNAL_TYPEDEF, 360 ParserErrorCode.EXTERNAL_TYPEDEF,
361 ParserErrorCode.EXTRANEOUS_MODIFIER,
361 ParserErrorCode.FACTORY_TOP_LEVEL_DECLARATION, 362 ParserErrorCode.FACTORY_TOP_LEVEL_DECLARATION,
362 ParserErrorCode.FACTORY_WITHOUT_BODY, 363 ParserErrorCode.FACTORY_WITHOUT_BODY,
363 ParserErrorCode.FACTORY_WITH_INITIALIZERS, 364 ParserErrorCode.FACTORY_WITH_INITIALIZERS,
364 ParserErrorCode.FIELD_INITIALIZER_OUTSIDE_CONSTRUCTOR, 365 ParserErrorCode.FIELD_INITIALIZER_OUTSIDE_CONSTRUCTOR,
365 ParserErrorCode.FINAL_AND_COVARIANT, 366 ParserErrorCode.FINAL_AND_COVARIANT,
366 ParserErrorCode.FINAL_AND_VAR, 367 ParserErrorCode.FINAL_AND_VAR,
367 ParserErrorCode.FINAL_CLASS, 368 ParserErrorCode.FINAL_CLASS,
368 ParserErrorCode.FINAL_CONSTRUCTOR, 369 ParserErrorCode.FINAL_CONSTRUCTOR,
369 ParserErrorCode.FINAL_ENUM, 370 ParserErrorCode.FINAL_ENUM,
370 ParserErrorCode.FINAL_METHOD, 371 ParserErrorCode.FINAL_METHOD,
(...skipping 480 matching lines...) Expand 10 before | Expand all | Expand 10 after
851 * a single list of errors. 852 * a single list of errors.
852 */ 853 */
853 static List<AnalysisError> mergeLists(List<List<AnalysisError>> errorLists) { 854 static List<AnalysisError> mergeLists(List<List<AnalysisError>> errorLists) {
854 Set<AnalysisError> errors = new HashSet<AnalysisError>(); 855 Set<AnalysisError> errors = new HashSet<AnalysisError>();
855 for (List<AnalysisError> errorList in errorLists) { 856 for (List<AnalysisError> errorList in errorLists) {
856 errors.addAll(errorList); 857 errors.addAll(errorList);
857 } 858 }
858 return errors.toList(); 859 return errors.toList();
859 } 860 }
860 } 861 }
OLDNEW
« no previous file with comments | « no previous file | pkg/analyzer/lib/src/dart/error/syntactic_errors.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698