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

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

Issue 2996163002: support class native clause (Closed)
Patch Set: update DietListener and test 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/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 410 matching lines...) Expand 10 before | Expand all | Expand 10 after
421 ParserErrorCode.MULTIPLE_LIBRARY_DIRECTIVES, 421 ParserErrorCode.MULTIPLE_LIBRARY_DIRECTIVES,
422 ParserErrorCode.MULTIPLE_NAMED_PARAMETER_GROUPS, 422 ParserErrorCode.MULTIPLE_NAMED_PARAMETER_GROUPS,
423 ParserErrorCode.MULTIPLE_PART_OF_DIRECTIVES, 423 ParserErrorCode.MULTIPLE_PART_OF_DIRECTIVES,
424 ParserErrorCode.MULTIPLE_POSITIONAL_PARAMETER_GROUPS, 424 ParserErrorCode.MULTIPLE_POSITIONAL_PARAMETER_GROUPS,
425 ParserErrorCode.MULTIPLE_VARIABLES_IN_FOR_EACH, 425 ParserErrorCode.MULTIPLE_VARIABLES_IN_FOR_EACH,
426 ParserErrorCode.MULTIPLE_WITH_CLAUSES, 426 ParserErrorCode.MULTIPLE_WITH_CLAUSES,
427 ParserErrorCode.NAMED_FUNCTION_EXPRESSION, 427 ParserErrorCode.NAMED_FUNCTION_EXPRESSION,
428 ParserErrorCode.NAMED_FUNCTION_TYPE, 428 ParserErrorCode.NAMED_FUNCTION_TYPE,
429 ParserErrorCode.NAMED_PARAMETER_OUTSIDE_GROUP, 429 ParserErrorCode.NAMED_PARAMETER_OUTSIDE_GROUP,
430 ParserErrorCode.NATIVE_CLAUSE_IN_NON_SDK_CODE, 430 ParserErrorCode.NATIVE_CLAUSE_IN_NON_SDK_CODE,
431 ParserErrorCode.NATIVE_CLAUSE_SHOULD_BE_ANNOTATION,
431 ParserErrorCode.NATIVE_FUNCTION_BODY_IN_NON_SDK_CODE, 432 ParserErrorCode.NATIVE_FUNCTION_BODY_IN_NON_SDK_CODE,
432 ParserErrorCode.NON_CONSTRUCTOR_FACTORY, 433 ParserErrorCode.NON_CONSTRUCTOR_FACTORY,
433 ParserErrorCode.NON_IDENTIFIER_LIBRARY_NAME, 434 ParserErrorCode.NON_IDENTIFIER_LIBRARY_NAME,
434 ParserErrorCode.NON_PART_OF_DIRECTIVE_IN_PART, 435 ParserErrorCode.NON_PART_OF_DIRECTIVE_IN_PART,
435 ParserErrorCode.NON_STRING_LITERAL_AS_URI, 436 ParserErrorCode.NON_STRING_LITERAL_AS_URI,
436 ParserErrorCode.NON_USER_DEFINABLE_OPERATOR, 437 ParserErrorCode.NON_USER_DEFINABLE_OPERATOR,
437 ParserErrorCode.NORMAL_BEFORE_OPTIONAL_PARAMETERS, 438 ParserErrorCode.NORMAL_BEFORE_OPTIONAL_PARAMETERS,
438 ParserErrorCode.NULLABLE_TYPE_IN_EXTENDS, 439 ParserErrorCode.NULLABLE_TYPE_IN_EXTENDS,
439 ParserErrorCode.NULLABLE_TYPE_IN_IMPLEMENTS, 440 ParserErrorCode.NULLABLE_TYPE_IN_IMPLEMENTS,
440 ParserErrorCode.NULLABLE_TYPE_IN_WITH, 441 ParserErrorCode.NULLABLE_TYPE_IN_WITH,
(...skipping 407 matching lines...) Expand 10 before | Expand all | Expand 10 after
848 * a single list of errors. 849 * a single list of errors.
849 */ 850 */
850 static List<AnalysisError> mergeLists(List<List<AnalysisError>> errorLists) { 851 static List<AnalysisError> mergeLists(List<List<AnalysisError>> errorLists) {
851 Set<AnalysisError> errors = new HashSet<AnalysisError>(); 852 Set<AnalysisError> errors = new HashSet<AnalysisError>();
852 for (List<AnalysisError> errorList in errorLists) { 853 for (List<AnalysisError> errorList in errorLists) {
853 errors.addAll(errorList); 854 errors.addAll(errorList);
854 } 855 }
855 return errors.toList(); 856 return errors.toList();
856 } 857 }
857 } 858 }
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