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

Unified Diff: compiler/java/com/google/dart/compiler/parser/ParserErrorCode.java

Issue 8913016: Issue 839: Bad code leading to top level methods being something other than identifier (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Nits Created 9 years 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/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;
}

Powered by Google App Engine
This is Rietveld 408576698