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

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

Issue 2738113002: Add strong mode error for mixins defining conflicting private names (issue 28809) (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/error/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 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 CompileTimeErrorCode.NON_GENERATIVE_CONSTRUCTOR, 186 CompileTimeErrorCode.NON_GENERATIVE_CONSTRUCTOR,
187 CompileTimeErrorCode.NOT_ENOUGH_REQUIRED_ARGUMENTS, 187 CompileTimeErrorCode.NOT_ENOUGH_REQUIRED_ARGUMENTS,
188 CompileTimeErrorCode.NO_ANNOTATION_CONSTRUCTOR_ARGUMENTS, 188 CompileTimeErrorCode.NO_ANNOTATION_CONSTRUCTOR_ARGUMENTS,
189 CompileTimeErrorCode.NO_DEFAULT_SUPER_CONSTRUCTOR_EXPLICIT, 189 CompileTimeErrorCode.NO_DEFAULT_SUPER_CONSTRUCTOR_EXPLICIT,
190 CompileTimeErrorCode.NO_DEFAULT_SUPER_CONSTRUCTOR_IMPLICIT, 190 CompileTimeErrorCode.NO_DEFAULT_SUPER_CONSTRUCTOR_IMPLICIT,
191 CompileTimeErrorCode.OBJECT_CANNOT_EXTEND_ANOTHER_CLASS, 191 CompileTimeErrorCode.OBJECT_CANNOT_EXTEND_ANOTHER_CLASS,
192 CompileTimeErrorCode.OPTIONAL_PARAMETER_IN_OPERATOR, 192 CompileTimeErrorCode.OPTIONAL_PARAMETER_IN_OPERATOR,
193 CompileTimeErrorCode.PART_OF_NON_PART, 193 CompileTimeErrorCode.PART_OF_NON_PART,
194 CompileTimeErrorCode.PREFIX_COLLIDES_WITH_TOP_LEVEL_MEMBER, 194 CompileTimeErrorCode.PREFIX_COLLIDES_WITH_TOP_LEVEL_MEMBER,
195 CompileTimeErrorCode.PREFIX_IDENTIFIER_NOT_FOLLOWED_BY_DOT, 195 CompileTimeErrorCode.PREFIX_IDENTIFIER_NOT_FOLLOWED_BY_DOT,
196 CompileTimeErrorCode.PRIVATE_COLLISION_IN_MIXIN_APPLICATION,
196 CompileTimeErrorCode.PRIVATE_OPTIONAL_PARAMETER, 197 CompileTimeErrorCode.PRIVATE_OPTIONAL_PARAMETER,
197 CompileTimeErrorCode.RECURSIVE_COMPILE_TIME_CONSTANT, 198 CompileTimeErrorCode.RECURSIVE_COMPILE_TIME_CONSTANT,
198 CompileTimeErrorCode.RECURSIVE_CONSTRUCTOR_REDIRECT, 199 CompileTimeErrorCode.RECURSIVE_CONSTRUCTOR_REDIRECT,
199 CompileTimeErrorCode.RECURSIVE_FACTORY_REDIRECT, 200 CompileTimeErrorCode.RECURSIVE_FACTORY_REDIRECT,
200 CompileTimeErrorCode.RECURSIVE_INTERFACE_INHERITANCE, 201 CompileTimeErrorCode.RECURSIVE_INTERFACE_INHERITANCE,
201 CompileTimeErrorCode.RECURSIVE_INTERFACE_INHERITANCE_BASE_CASE_EXTENDS, 202 CompileTimeErrorCode.RECURSIVE_INTERFACE_INHERITANCE_BASE_CASE_EXTENDS,
202 CompileTimeErrorCode.RECURSIVE_INTERFACE_INHERITANCE_BASE_CASE_IMPLEMENTS, 203 CompileTimeErrorCode.RECURSIVE_INTERFACE_INHERITANCE_BASE_CASE_IMPLEMENTS,
203 CompileTimeErrorCode.RECURSIVE_INTERFACE_INHERITANCE_BASE_CASE_WITH, 204 CompileTimeErrorCode.RECURSIVE_INTERFACE_INHERITANCE_BASE_CASE_WITH,
204 CompileTimeErrorCode.REDIRECT_GENERATIVE_TO_MISSING_CONSTRUCTOR, 205 CompileTimeErrorCode.REDIRECT_GENERATIVE_TO_MISSING_CONSTRUCTOR,
205 CompileTimeErrorCode.REDIRECT_GENERATIVE_TO_NON_GENERATIVE_CONSTRUCTOR, 206 CompileTimeErrorCode.REDIRECT_GENERATIVE_TO_NON_GENERATIVE_CONSTRUCTOR,
(...skipping 620 matching lines...) Expand 10 before | Expand all | Expand 10 after
826 * a single list of errors. 827 * a single list of errors.
827 */ 828 */
828 static List<AnalysisError> mergeLists(List<List<AnalysisError>> errorLists) { 829 static List<AnalysisError> mergeLists(List<List<AnalysisError>> errorLists) {
829 Set<AnalysisError> errors = new HashSet<AnalysisError>(); 830 Set<AnalysisError> errors = new HashSet<AnalysisError>();
830 for (List<AnalysisError> errorList in errorLists) { 831 for (List<AnalysisError> errorList in errorLists) {
831 errors.addAll(errorList); 832 errors.addAll(errorList);
832 } 833 }
833 return errors.toList(); 834 return errors.toList();
834 } 835 }
835 } 836 }
OLDNEW
« no previous file with comments | « no previous file | pkg/analyzer/lib/src/error/codes.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698