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

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

Issue 11273064: Issue 5887. Parts must start with 'part of'. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 2 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 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;

Powered by Google App Engine
This is Rietveld 408576698