Index: compiler/java/com/google/dart/compiler/parser/ParserErrorCode.java |
diff --git a/compiler/java/com/google/dart/compiler/parser/ParserErrorCode.java b/compiler/java/com/google/dart/compiler/parser/ParserErrorCode.java |
index 4df0edcc6949825b2ff5e0020c9489ec77d8689c..c6ee3292080ba2e89052954f2f40d27924ac706a 100644 |
--- a/compiler/java/com/google/dart/compiler/parser/ParserErrorCode.java |
+++ b/compiler/java/com/google/dart/compiler/parser/ParserErrorCode.java |
@@ -50,6 +50,7 @@ public enum ParserErrorCode implements ErrorCode { |
FOR_IN_WITH_VARIABLE_INITIALIZER("Cannot initialize for-in variables"), |
FUNCTION_TYPED_PARAMETER_IS_FINAL("Formal parameter with a function type cannot be const"), |
FUNCTION_TYPED_PARAMETER_IS_VAR("Formal parameter with a function type cannot be var"), |
+ FUNCTION_NAME_EXPECTED_IDENTIFIER("Function name expected to be an identifier"), |
ILLEGAL_ASSIGNMENT_TO_NON_ASSIGNABLE("Illegal assignment to non-assignable expression"), |
ILLEGAL_NUMBER_OF_PARAMETERS("Illegal number of parameters"), |
INCOMPLETE_STRING_LITERAL("Incomplete string literal"), |
@@ -89,14 +90,17 @@ public enum ParserErrorCode implements ErrorCode { |
this.message = message; |
} |
+ @Override |
public String getMessage() { |
return message; |
} |
+ @Override |
public ErrorSeverity getErrorSeverity() { |
return severity; |
} |
+ @Override |
public SubSystem getSubSystem() { |
return SubSystem.PARSER; |
} |