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

Unified Diff: editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/parser/ParserErrorCode.java

Issue 10793029: Folded in recent changes from the dartc parser error codes into the Analysis Engine. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 5 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
« no previous file with comments | « compiler/java/com/google/dart/compiler/parser/ParserErrorCode.java ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/parser/ParserErrorCode.java
diff --git a/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/parser/ParserErrorCode.java b/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/parser/ParserErrorCode.java
index 2ea89febfd0a8af4de5f4c17b4e51350a2780932..687bdad5b5329e6f4a08151262272855475a7653 100644
--- a/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/parser/ParserErrorCode.java
+++ b/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/parser/ParserErrorCode.java
@@ -26,15 +26,17 @@ import com.google.dart.engine.error.SubSystem;
*/
public enum ParserErrorCode implements ErrorCode {
// ABSTRACT_MEMBER_IN_INTERFACE("Abstract members are not allowed in interfaces"),
-// ABSTRACT_METHOD_WITH_BODY("Abstract method can not have a body"),
+// ABSTRACT_METHOD_WITH_BODY("Abstract method cannot have a body"),
// ABSTRACT_TOP_LEVEL_ELEMENT("Only class can be abstract top-level element"),
+// BREAK_OUTSIDE_OF_LOOP("'break' used outside of loop, case statement"),
+// BUILT_IN_IDENTIFIER_AS_TYPE_NAME("Built-in identifier cannot be used as type name"),
+// BUILT_IN_IDENTIFIER_AS_TYPEDEF_NAME("Built-in identifier can not be used as type alias name"),
+// BUILT_IN_IDENTIFIER_AS_TYPE_VARIABLE_NAME("Built-in identifier can not be used as type variable name"),
CATCH_OR_FINALLY_EXPECTED("catch or finally clause expected."),
-// DEFAULT_VALUE_CAN_NOT_BE_SPECIFIED_IN_ABSTRACT(
-// "Default values can not be specified in abstract method"),
+// CONTINUE_IN_CASE_MUST_HAVE_LABEL("'continue' in case statement must have a label as a target."),
+// CONTINUE_OUTSIDE_OF_LOOP("'continue' used outside of loop or case statement"),
// DEFAULT_VALUE_CAN_NOT_BE_SPECIFIED_IN_CLOSURE(
// "Default values can not be specified in closure parameter"),
-// DEFAULT_VALUE_CAN_NOT_BE_SPECIFIED_IN_INTERFACE(
-// "Default values can not be specified in signature of an interface method"),
// DEFAULT_VALUE_CAN_NOT_BE_SPECIFIED_IN_TYPEDEF(
// "Default values can not be specified in closure type definition"),
// DEFAULT_POSITIONAL_PARAMETER("Positional parameters cannot have default values"),
@@ -43,16 +45,19 @@ public enum ParserErrorCode implements ErrorCode {
DIRECTIVE_OUT_OF_ORDER("Directive out of order"),
// DISALLOWED_ABSTRACT_KEYWORD("Abstract keyword not allowed here"),
// DISALLOWED_FACTORY_KEYWORD("Factory keyword not allowed here"),
+// DISALLOWED_STATIC_KEYWORD("Static keyword not allowed here"),
+// EXPECTED_ARRAY_OR_MAP_LITERAL("Expected array or map literal"),
EXPECTED_CASE_OR_DEFAULT("Expected 'case' or 'default'"),
// EXPECTED_CLASS_DECLARATION_LBRACE("Expected '{' in class or interface declaration"),
// EXPECTED_COMMA_OR_RIGHT_BRACE("Expected ',' or '}'"),
// EXPECTED_COMMA_OR_RIGHT_PAREN("Expected ',' or ')', but got '%s'"),
// EXPECTED_EOS("Unexpected token '%s' (expected end of file)"),
+// EXPECTED_EXPRESSION_AFTER_COMMA("Expected expression after comma"),
// EXPECTED_EXTENDS("Expected 'extends'"),
+// EXPECTED_FUNCTION_STATEMENT_BODY("Expected function statement body"),
EXPECTED_IDENTIFIER("Expected identifier"),
// EXPECTED_LEFT_PAREN("'(' expected"),
EXPECTED_LIST_OR_MAP_LITERAL("Expected list or map literal"),
-// EXPECTED_PERIOD_OR_LEFT_BRACKET("Expected '.' or '['"),
// EXPECTED_PREFIX_KEYWORD("Expected 'prefix' after comma"),
// EXPECTED_PREFIX_IDENTIFIER("Prefix string can only contain valid identifier characters"),
// EXPECTED_SEMICOLON("Expected ';'"),
@@ -60,12 +65,11 @@ public enum ParserErrorCode implements ErrorCode {
// EXPECTED_STRING_LITERAL_MAP_ENTRY_KEY("Expected string literal for map entry key"),
// EXPECTED_TOKEN("Unexpected token '%s' (expected '%s')"),
// EXPECTED_VAR_FINAL_OR_TYPE("Expected 'var', 'final' or type"),
-// EXPORTED_FUNCTIONS_MUST_BE_STATIC("Exported functions must be static"),
-// NATIVE_MUST_NOT_EXTEND("Native classes must not extend other classes"),
// NATIVE_ONLY_CLASS("Native keyword can be specified only for classes"),
// NATIVE_ONLY_CORE_LIB("Native keyword can be used only in corelib"),
// FACTORY_CANNOT_BE_ABSTRACT("A factory cannot be abstract"),
// FACTORY_CANNOT_BE_STATIC("A factory cannot be static"),
+// FACTORY_CANNOT_BE_TOP_LEVEL("A factory cannot be top level, it must be a member of a class"),
// FACTORY_MEMBER_IN_INTERFACE("Factory members are not allowed in interfaces"),
// FINAL_IS_NOT_ALLOWED_ON_A_METHOD_DEFINITION("'final' is not allowed on a method definition"),
// FOR_IN_WITH_COMPLEX_VARIABLE("Only simple variables can be assigned to in a for-in construct"),
@@ -81,19 +85,24 @@ public enum ParserErrorCode implements ErrorCode {
// INVALID_FIELD_DECLARATION("Wrong syntax for field declaration"),
// INVALID_IDENTIFIER("The token '%s' cannot be used as an identifier"),
// INVALID_OPERATOR_CHAINING("Cannot chain '%s'"),
+// LABEL_NOT_FOLLOWED_BY_CASE_OR_DEFAULT("Label not followed by 'case', 'default', or statement"),
// LOCAL_CANNOT_BE_STATIC("Local function can not be static"),
// MISSING_FUNCTION_NAME("a function name is required for a declaration"),
// NAMED_PARAMETER_NOT_ALLOWED("Named parameter is not allowed for operator or setter method"),
+// NO_SPACE_AFTER_PLUS("Cannot have space between plus and numeric literal"),
+// NO_SOUP_FOR_YOU("Too many errors"),
// NO_UNARY_PLUS_OPERATOR("No unary plus operator in Dart"),
// NON_FINAL_STATIC_MEMBER_IN_INTERFACE("Non-final static members are not allowed in interfaces"),
ONLY_ONE_LIBRARY_DIRECTIVE("Only one library directive may be declared in a file"),
OPERATOR_CANNOT_BE_STATIC("Operators cannot be static"),
OPERATOR_IS_NOT_USER_DEFINABLE("Operator is not user definable"),
POSITIONAL_AFTER_NAMED_ARGUMENT("Positional argument after named argument"),
+// REDIRECTING_CONSTRUCTOR_CANNOT_HAVE_A_BODY("Redirecting constructor cannot have a body"),
// REDIRECTING_CONSTRUCTOR_PARAM("Redirecting constructor can not have initializers"),
// REDIRECTING_CONSTRUCTOR_ITSELF("Redirecting constructor can not have initializers"),
// REDIRECTING_CONSTRUCTOR_MULTIPLE("Multiple redirecting constructor invocations"),
// REDIRECTING_CONSTRUCTOR_OTHER("Redirecting constructor can not have initializers"),
+// STATIC_MEMBERS_CANNOT_BE_ABSTRACT("Static members cannot be abstract"),
// SUPER_CONSTRUCTOR_MULTIPLE("'super' must be called only once in the initialization list"),
// SUPER_CANNOT_BE_USED_AS_THE_SECOND_OPERAND(
// "'super' cannot be used as the second operand in a binary expression."),
@@ -101,9 +110,9 @@ public enum ParserErrorCode implements ErrorCode {
// SUPER_IS_NOT_VALID_ALONE_OR_AS_A_BOOLEAN_OPERAND(
// "'super' is not valid alone or as a boolean operand"),
// TOP_LEVEL_CANNOT_BE_STATIC("Top-level field or method can not be static"),
+// UNREACHABLE_CODE_IN_CASE(ErrorSeverity.WARNING, "Unreachable code in case statement"),
UNEXPECTED_TOKEN("Unexpected token '%s'");
// UNEXPECTED_TOKEN_IN_STRING_INTERPOLATION("Unexpected token in string interpolation: %s"),
-// UNEXPECTED_TYPE_ARGUMENT("unexpected type argument"),
// VAR_IS_NOT_ALLOWED_ON_A_METHOD_DEFINITION("'var' is not allowed on a method definition"),
// VOID_FIELD("Field cannot be of type void"),
// VOID_PARAMETER("Parameter cannot be of type void");
« no previous file with comments | « compiler/java/com/google/dart/compiler/parser/ParserErrorCode.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698