| OLD | NEW |
| 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.src.error.codes; | 5 library analyzer.src.error.codes; |
| 6 | 6 |
| 7 import 'package:analyzer/error/error.dart'; | 7 import 'package:analyzer/error/error.dart'; |
| 8 import 'package:analyzer/src/dart/element/element.dart'; | 8 import 'package:analyzer/src/dart/element/element.dart'; |
| 9 | 9 |
| 10 /** | 10 /** |
| (...skipping 734 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 745 * a static member with the same name. | 745 * a static member with the same name. |
| 746 * | 746 * |
| 747 * Parameters: | 747 * Parameters: |
| 748 * 0: the name of the duplicate entity | 748 * 0: the name of the duplicate entity |
| 749 */ | 749 */ |
| 750 static const CompileTimeErrorCode DUPLICATE_DEFINITION = | 750 static const CompileTimeErrorCode DUPLICATE_DEFINITION = |
| 751 const CompileTimeErrorCode( | 751 const CompileTimeErrorCode( |
| 752 'DUPLICATE_DEFINITION', "The name '{0}' is already defined"); | 752 'DUPLICATE_DEFINITION', "The name '{0}' is already defined"); |
| 753 | 753 |
| 754 /** | 754 /** |
| 755 * 18.3 Parts: It's a compile-time error if the same library contains two part |
| 756 * directives with the same URI. |
| 757 * |
| 758 * Parameters: |
| 759 * 0: the URI of the duplicate part |
| 760 */ |
| 761 static const CompileTimeErrorCode DUPLICATE_PART = const CompileTimeErrorCode( |
| 762 'DUPLICATE_PART', |
| 763 "The library already contains a part with the uri '{0}'."); |
| 764 |
| 765 /** |
| 755 * 7. Classes: It is a compile-time error if a class has an instance member | 766 * 7. Classes: It is a compile-time error if a class has an instance member |
| 756 * and a static member with the same name. | 767 * and a static member with the same name. |
| 757 * | 768 * |
| 758 * This covers the additional duplicate definition cases where inheritance has | 769 * This covers the additional duplicate definition cases where inheritance has |
| 759 * to be considered. | 770 * to be considered. |
| 760 * | 771 * |
| 761 * Parameters: | 772 * Parameters: |
| 762 * 0: the name of the class that has conflicting instance/static members | 773 * 0: the name of the class that has conflicting instance/static members |
| 763 * 1: the name of the conflicting members | 774 * 1: the name of the conflicting members |
| 764 * | 775 * |
| (...skipping 4100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4865 * Initialize a newly created error code to have the given [name]. | 4876 * Initialize a newly created error code to have the given [name]. |
| 4866 */ | 4877 */ |
| 4867 const TodoCode(String name) : super(name, "{0}"); | 4878 const TodoCode(String name) : super(name, "{0}"); |
| 4868 | 4879 |
| 4869 @override | 4880 @override |
| 4870 ErrorSeverity get errorSeverity => ErrorSeverity.INFO; | 4881 ErrorSeverity get errorSeverity => ErrorSeverity.INFO; |
| 4871 | 4882 |
| 4872 @override | 4883 @override |
| 4873 ErrorType get type => ErrorType.TODO; | 4884 ErrorType get type => ErrorType.TODO; |
| 4874 } | 4885 } |
| OLD | NEW |