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

Unified Diff: compiler/java/com/google/dart/compiler/DartCompilerErrorCode.java

Issue 10532100: Issue 3532. Report error if one unit included twice (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 6 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: compiler/java/com/google/dart/compiler/DartCompilerErrorCode.java
diff --git a/compiler/java/com/google/dart/compiler/DartCompilerErrorCode.java b/compiler/java/com/google/dart/compiler/DartCompilerErrorCode.java
index 4797109173e276b6391e4fd8065403862bbbd620..32746db5f897d5b61f5f7ac81d15b5090bfd67bb 100644
--- a/compiler/java/com/google/dart/compiler/DartCompilerErrorCode.java
+++ b/compiler/java/com/google/dart/compiler/DartCompilerErrorCode.java
@@ -18,7 +18,8 @@ public enum DartCompilerErrorCode implements ErrorCode {
+ "#source directive, so cannot itself contain directives"),
IO("Input/Output error: %s"),
MISSING_LIBRARY_DIRECTIVE("a library which is imported is missing a #library directive: %s"),
- MISSING_SOURCE("Cannot find referenced source: %s");
+ MISSING_SOURCE("Cannot find referenced source: %s"),
+ UNIT_WAS_ALREADY_INCLUDED("Unit '%s' was already included");
private final ErrorSeverity severity;
private final String message;

Powered by Google App Engine
This is Rietveld 408576698