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

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

Issue 8564027: Report errors for default parameter values, issue 351 (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Tweaks for tests and other Created 9 years, 1 month 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 e2525f6c8d056e14574002452d26385e79d77155..96297a6854d3b5a215587f717a99ee7d7b738591 100644
--- a/compiler/java/com/google/dart/compiler/parser/ParserErrorCode.java
+++ b/compiler/java/com/google/dart/compiler/parser/ParserErrorCode.java
@@ -10,9 +10,14 @@ import com.google.dart.compiler.SubSystem;
public enum ParserErrorCode implements ErrorCode {
ABSTRACT_MEMBER_IN_INTERFACE("Abstract members are not allowed in interfaces"),
CATCH_OR_FINALLY_EXPECTED("catch or finally clause expected."),
+ DEFAULT_PARAMETER_ABSTRACT("Default values can not be specified in abstract method"),
zundel 2011/11/15 16:16:57 DEFAULT_VALUE_NOT_IN_ABSTRACT_METHOD("Default valu
scheglov 2011/11/15 16:33:21 Hm... I don't understand why to use "NOT" here and
zundel 2011/11/15 16:36:46 The convention in this file (with some exceptions)
scheglov 2011/11/15 16:45:58 Done.
+ DEFAULT_PARAMETER_CLOSURE("Default values can not be specified in closure parameter"),
zundel 2011/11/15 16:16:57 DEFAULT_VALUE_NOT_IN_CLOSURE("Default value can ..
+ DEFAULT_PARAMETER_INTERFACE("Default values can not be specified in signature of an interface method"),
+ DEFAULT_PARAMETER_TYPEDEF("Default values can not be specified in closure type definition"),
zundel 2011/11/15 16:16:57 DEFAULT_VALUE_NOT_IN_TYPEDEF("Default value can ..
DEFAULT_POSITIONAL_PARAMETER("Positional parameters cannot have default values"),
DISALLOWED_ABSTRACT_KEYWORD("Abstract keyword not allowed here"),
DISALLOWED_FACTORY_KEYWORD("Factory keyword not allowed here"),
+ EACH_PARAMETER_IS_REQUIRED("Each parameter should be required"),
zundel 2011/11/15 16:16:57 NAMED_PARAMETER_NOT_ALLOWED("Named parameter is no
scheglov 2011/11/15 16:33:21 Done.
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"),

Powered by Google App Engine
This is Rietveld 408576698