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

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

Issue 2770143002: More generic function type cases working (Closed)
Patch Set: Created 3 years, 9 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/element/builder.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 350 matching lines...) Expand 10 before | Expand all | Expand 10 after
361 ParserErrorCode.GETTER_IN_FUNCTION, 361 ParserErrorCode.GETTER_IN_FUNCTION,
362 ParserErrorCode.GETTER_WITH_PARAMETERS, 362 ParserErrorCode.GETTER_WITH_PARAMETERS,
363 ParserErrorCode.ILLEGAL_ASSIGNMENT_TO_NON_ASSIGNABLE, 363 ParserErrorCode.ILLEGAL_ASSIGNMENT_TO_NON_ASSIGNABLE,
364 ParserErrorCode.IMPLEMENTS_BEFORE_EXTENDS, 364 ParserErrorCode.IMPLEMENTS_BEFORE_EXTENDS,
365 ParserErrorCode.IMPLEMENTS_BEFORE_WITH, 365 ParserErrorCode.IMPLEMENTS_BEFORE_WITH,
366 ParserErrorCode.IMPORT_DIRECTIVE_AFTER_PART_DIRECTIVE, 366 ParserErrorCode.IMPORT_DIRECTIVE_AFTER_PART_DIRECTIVE,
367 ParserErrorCode.INITIALIZED_VARIABLE_IN_FOR_EACH, 367 ParserErrorCode.INITIALIZED_VARIABLE_IN_FOR_EACH,
368 ParserErrorCode.INVALID_AWAIT_IN_FOR, 368 ParserErrorCode.INVALID_AWAIT_IN_FOR,
369 ParserErrorCode.INVALID_CODE_POINT, 369 ParserErrorCode.INVALID_CODE_POINT,
370 ParserErrorCode.INVALID_COMMENT_REFERENCE, 370 ParserErrorCode.INVALID_COMMENT_REFERENCE,
371 ParserErrorCode.INVALID_GENERIC_FUNCTION_TYPE,
371 ParserErrorCode.INVALID_HEX_ESCAPE, 372 ParserErrorCode.INVALID_HEX_ESCAPE,
372 ParserErrorCode.INVALID_LITERAL_IN_CONFIGURATION, 373 ParserErrorCode.INVALID_LITERAL_IN_CONFIGURATION,
373 ParserErrorCode.INVALID_OPERATOR, 374 ParserErrorCode.INVALID_OPERATOR,
374 ParserErrorCode.INVALID_OPERATOR_FOR_SUPER, 375 ParserErrorCode.INVALID_OPERATOR_FOR_SUPER,
375 ParserErrorCode.INVALID_STAR_AFTER_ASYNC, 376 ParserErrorCode.INVALID_STAR_AFTER_ASYNC,
376 ParserErrorCode.INVALID_SYNC, 377 ParserErrorCode.INVALID_SYNC,
377 ParserErrorCode.INVALID_UNICODE_ESCAPE, 378 ParserErrorCode.INVALID_UNICODE_ESCAPE,
378 ParserErrorCode.LIBRARY_DIRECTIVE_NOT_FIRST, 379 ParserErrorCode.LIBRARY_DIRECTIVE_NOT_FIRST,
379 ParserErrorCode.LOCAL_FUNCTION_DECLARATION_MODIFIER, 380 ParserErrorCode.LOCAL_FUNCTION_DECLARATION_MODIFIER,
380 ParserErrorCode.MISSING_ASSIGNABLE_SELECTOR, 381 ParserErrorCode.MISSING_ASSIGNABLE_SELECTOR,
(...skipping 446 matching lines...) Expand 10 before | Expand all | Expand 10 after
827 * a single list of errors. 828 * a single list of errors.
828 */ 829 */
829 static List<AnalysisError> mergeLists(List<List<AnalysisError>> errorLists) { 830 static List<AnalysisError> mergeLists(List<List<AnalysisError>> errorLists) {
830 Set<AnalysisError> errors = new HashSet<AnalysisError>(); 831 Set<AnalysisError> errors = new HashSet<AnalysisError>();
831 for (List<AnalysisError> errorList in errorLists) { 832 for (List<AnalysisError> errorList in errorLists) {
832 errors.addAll(errorList); 833 errors.addAll(errorList);
833 } 834 }
834 return errors.toList(); 835 return errors.toList();
835 } 836 }
836 } 837 }
OLDNEW
« no previous file with comments | « no previous file | pkg/analyzer/lib/src/dart/element/builder.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698