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

Unified Diff: editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/error/StaticWarningCode.java

Issue 15004020: Report StaticWarningCode.IMPORT_DUPLICATED_LIBRARY_NAME (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Use multiline test sources Created 7 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/error/StaticWarningCode.java
diff --git a/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/error/StaticWarningCode.java b/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/error/StaticWarningCode.java
index eb9719808b92e1972c1196ea63e1f2cedb2643ea..f5da824c9e6d06b2944d43a9a1b8e9dd3e63efe2 100644
--- a/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/error/StaticWarningCode.java
+++ b/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/error/StaticWarningCode.java
@@ -173,6 +173,16 @@ public enum StaticWarningCode implements ErrorCode {
"The parameter type '%s' is incompatable with the field type '%s'"),
/**
+ * 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
+ * @param name the shared name of the imported libraries
+ */
+ IMPORT_DUPLICATED_LIBRARY_NAME(
+ "The different imported libraries '%s' and '%s' should not have the same name '%s'"),
+
+ /**
* 12.14.2 Binding Actuals to Formals: It is a static warning if <i>m &lt; h</i> or if <i>m &gt;
* n</i>.
*/

Powered by Google App Engine
This is Rietveld 408576698