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

Unified Diff: pkg/analyzer/lib/src/generated/error.dart

Issue 712663002: Fix for issue 20125 - improved error messages (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | pkg/analyzer/lib/src/generated/error_verifier.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/lib/src/generated/error.dart
diff --git a/pkg/analyzer/lib/src/generated/error.dart b/pkg/analyzer/lib/src/generated/error.dart
index f88d40a76327ad9f8e6c7148b0c0d4d6496d7c03..17d2387874ab93bc2b2ab23442766484a306780c 100644
--- a/pkg/analyzer/lib/src/generated/error.dart
+++ b/pkg/analyzer/lib/src/generated/error.dart
@@ -3280,7 +3280,22 @@ class StaticWarningCode extends ErrorCode {
* @param uri2 the uri pointing to a second library
* @param name the shared name of the exported libraries
*/
- static const StaticWarningCode EXPORT_DUPLICATED_LIBRARY_NAME = const StaticWarningCode('EXPORT_DUPLICATED_LIBRARY_NAME', "The exported libraries '{0}' and '{1}' should not have the same name '{2}'");
+ static const StaticWarningCode EXPORT_DUPLICATED_LIBRARY_NAMED
+ = const StaticWarningCode(
+ 'EXPORT_DUPLICATED_LIBRARY_NAMED',
+ "The exported libraries '{0}' and '{1}' cannot have the same name '{2}'");
+
+ /**
+ * 14.2 Exports: It is a static warning to export two different libraries with
+ * the same name.
+ *
+ * @param uri1 the uri pointing to a first library
+ * @param uri2 the uri pointing to a second library
+ */
+ static const StaticWarningCode EXPORT_DUPLICATED_LIBRARY_UNNAMED
+ = const StaticWarningCode(
+ 'EXPORT_DUPLICATED_LIBRARY_UNNAMED',
+ "The exported libraries '{0}' and '{1}' cannot both be unnamed");
/**
* 12.14.2 Binding Actuals to Formals: It is a static warning if <i>m &lt;
@@ -3367,7 +3382,22 @@ class StaticWarningCode extends ErrorCode {
* @param uri2 the uri pointing to a second library
* @param name the shared name of the imported libraries
*/
- static const StaticWarningCode IMPORT_DUPLICATED_LIBRARY_NAME = const StaticWarningCode('IMPORT_DUPLICATED_LIBRARY_NAME', "The imported libraries '{0}' and '{1}' should not have the same name '{2}'");
+ static const StaticWarningCode IMPORT_DUPLICATED_LIBRARY_NAMED
+ = const StaticWarningCode(
+ 'IMPORT_DUPLICATED_LIBRARY_NAMED',
+ "The imported libraries '{0}' and '{1}' cannot have the same name '{2}'");
+
+ /**
+ * 14.1 Imports: It is a static warning to import two different libraries with
+ * the same name.
+ *
+ * @param uri1 the uri pointing to a first library
+ * @param uri2 the uri pointing to a second library
+ */
+ static const StaticWarningCode IMPORT_DUPLICATED_LIBRARY_UNNAMED
+ = const StaticWarningCode(
+ 'IMPORT_DUPLICATED_LIBRARY_UNNAMED',
+ "The imported libraries '{0}' and '{1}' cannot both be unnamed");
/**
* 14.1 Imports: It is a static warning if the specified URI of a deferred
« no previous file with comments | « no previous file | pkg/analyzer/lib/src/generated/error_verifier.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698