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

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

Issue 1305433005: No more warnings for duplicate unnamed lib imports. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 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
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 engine.error; 5 library engine.error;
6 6
7 import 'dart:collection'; 7 import 'dart:collection';
8 8
9 import 'ast.dart' show AstNode; 9 import 'ast.dart' show AstNode;
10 import 'element.dart'; 10 import 'element.dart';
(...skipping 3934 matching lines...) Expand 10 before | Expand all | Expand 10 after
3945 * Parameters: 3945 * Parameters:
3946 * 0: the uri pointing to a first library 3946 * 0: the uri pointing to a first library
3947 * 1: the uri pointing to a second library 3947 * 1: the uri pointing to a second library
3948 * 2:e the shared name of the exported libraries 3948 * 2:e the shared name of the exported libraries
3949 */ 3949 */
3950 static const StaticWarningCode EXPORT_DUPLICATED_LIBRARY_NAMED = 3950 static const StaticWarningCode EXPORT_DUPLICATED_LIBRARY_NAMED =
3951 const StaticWarningCode('EXPORT_DUPLICATED_LIBRARY_NAMED', 3951 const StaticWarningCode('EXPORT_DUPLICATED_LIBRARY_NAMED',
3952 "The exported libraries '{0}' and '{1}' cannot have the same name '{2} '"); 3952 "The exported libraries '{0}' and '{1}' cannot have the same name '{2} '");
3953 3953
3954 /** 3954 /**
3955 * 14.2 Exports: It is a static warning to export two different libraries with
3956 * the same name.
3957 *
3958 * Parameters:
3959 * 0: the uri pointing to a first library
3960 * 1: the uri pointing to a second library
3961 */
3962 static const StaticWarningCode EXPORT_DUPLICATED_LIBRARY_UNNAMED =
3963 const StaticWarningCode('EXPORT_DUPLICATED_LIBRARY_UNNAMED',
3964 "The exported libraries '{0}' and '{1}' cannot both be unnamed");
3965
3966 /**
3967 * 12.14.2 Binding Actuals to Formals: It is a static warning if <i>m &lt; 3955 * 12.14.2 Binding Actuals to Formals: It is a static warning if <i>m &lt;
3968 * h</i> or if <i>m &gt; n</i>. 3956 * h</i> or if <i>m &gt; n</i>.
3969 * 3957 *
3970 * Parameters: 3958 * Parameters:
3971 * 0: the maximum number of positional arguments 3959 * 0: the maximum number of positional arguments
3972 * 1: the actual number of positional arguments given 3960 * 1: the actual number of positional arguments given
3973 * 3961 *
3974 * See [NOT_ENOUGH_REQUIRED_ARGUMENTS]. 3962 * See [NOT_ENOUGH_REQUIRED_ARGUMENTS].
3975 */ 3963 */
3976 static const StaticWarningCode EXTRA_POSITIONAL_ARGUMENTS = 3964 static const StaticWarningCode EXTRA_POSITIONAL_ARGUMENTS =
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
4112 * Parameters: 4100 * Parameters:
4113 * 0: the uri pointing to a first library 4101 * 0: the uri pointing to a first library
4114 * 1: the uri pointing to a second library 4102 * 1: the uri pointing to a second library
4115 * 2: the shared name of the imported libraries 4103 * 2: the shared name of the imported libraries
4116 */ 4104 */
4117 static const StaticWarningCode IMPORT_DUPLICATED_LIBRARY_NAMED = 4105 static const StaticWarningCode IMPORT_DUPLICATED_LIBRARY_NAMED =
4118 const StaticWarningCode('IMPORT_DUPLICATED_LIBRARY_NAMED', 4106 const StaticWarningCode('IMPORT_DUPLICATED_LIBRARY_NAMED',
4119 "The imported libraries '{0}' and '{1}' cannot have the same name '{2} '"); 4107 "The imported libraries '{0}' and '{1}' cannot have the same name '{2} '");
4120 4108
4121 /** 4109 /**
4122 * 14.1 Imports: It is a static warning to import two different libraries with
4123 * the same name.
4124 *
4125 * Parameters:
4126 * 0: the uri pointing to a first library
4127 * 1: the uri pointing to a second library
4128 */
4129 static const StaticWarningCode IMPORT_DUPLICATED_LIBRARY_UNNAMED =
4130 const StaticWarningCode('IMPORT_DUPLICATED_LIBRARY_UNNAMED',
4131 "The imported libraries '{0}' and '{1}' cannot both be unnamed");
4132
4133 /**
4134 * 14.1 Imports: It is a static warning if the specified URI of a deferred 4110 * 14.1 Imports: It is a static warning if the specified URI of a deferred
4135 * import does not refer to a library declaration. 4111 * import does not refer to a library declaration.
4136 * 4112 *
4137 * Parameters: 4113 * Parameters:
4138 * 0: the uri pointing to a non-library declaration 4114 * 0: the uri pointing to a non-library declaration
4139 * 4115 *
4140 * See [CompileTimeErrorCode.IMPORT_OF_NON_LIBRARY]. 4116 * See [CompileTimeErrorCode.IMPORT_OF_NON_LIBRARY].
4141 */ 4117 */
4142 static const StaticWarningCode IMPORT_OF_NON_LIBRARY = 4118 static const StaticWarningCode IMPORT_OF_NON_LIBRARY =
4143 const StaticWarningCode('IMPORT_OF_NON_LIBRARY', 4119 const StaticWarningCode('IMPORT_OF_NON_LIBRARY',
(...skipping 818 matching lines...) Expand 10 before | Expand all | Expand 10 after
4962 * Initialize a newly created error code to have the given [name]. 4938 * Initialize a newly created error code to have the given [name].
4963 */ 4939 */
4964 const TodoCode(String name) : super(name, "{0}"); 4940 const TodoCode(String name) : super(name, "{0}");
4965 4941
4966 @override 4942 @override
4967 ErrorSeverity get errorSeverity => ErrorSeverity.INFO; 4943 ErrorSeverity get errorSeverity => ErrorSeverity.INFO;
4968 4944
4969 @override 4945 @override
4970 ErrorType get type => ErrorType.TODO; 4946 ErrorType get type => ErrorType.TODO;
4971 } 4947 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698