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 0744833354f341bbb7c6274c4c632b780e872c56..77ba4f2e213389e851a2f4d1f80308fbce97e50e 100644 |
--- a/compiler/java/com/google/dart/compiler/DartCompilerErrorCode.java |
+++ b/compiler/java/com/google/dart/compiler/DartCompilerErrorCode.java |
@@ -17,12 +17,16 @@ public enum DartCompilerErrorCode implements ErrorCode { |
ENTRY_POINT_METHOD_MAY_NOT_BE_SETTER(ErrorSeverity.WARNING, |
"Entry point \"%s\" may not be a setter"), |
ILLEGAL_DIRECTIVES_IN_SOURCED_UNIT("This part was included by %s via a " |
- + "part directive, so cannot itself contain directives other than a part of directive"), |
+ + "part directive, so cannot itself contain directives other than a 'part of' directive"), |
IO("Input/Output error: %s"), |
MIRRORS_NOT_FULLY_IMPLEMENTED(ErrorSeverity.WARNING, "dart:mirrors is not fully implemented yet"), |
MISSING_LIBRARY_DIRECTIVE("a library which is imported is missing a library directive: %s"), |
MISSING_SOURCE("Cannot find referenced source: %s"), |
- UNIT_WAS_ALREADY_INCLUDED("Unit '%s' was already included"); |
+ MISSING_PART_OF_DIRECTIVE("Missing 'part of' directive"), |
+ UNIT_WAS_ALREADY_INCLUDED("Unit '%s' was already included"), |
+ WRONG_PART_OF_NAME( |
+ ErrorSeverity.WARNING, |
+ "This part was included by '%s' via a 'part' directive, but uses name '%s' in 'part of' directive"); |
private final ErrorSeverity severity; |
private final String message; |