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

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

Issue 10990086: Parse and report error for const parameters (issue 5289) (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 3 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/parser/ParserErrorCode.java
===================================================================
--- compiler/java/com/google/dart/compiler/parser/ParserErrorCode.java (revision 12966)
+++ compiler/java/com/google/dart/compiler/parser/ParserErrorCode.java (working copy)
@@ -88,6 +88,7 @@
FOR_IN_WITH_COMPLEX_VARIABLE("Only simple variables can be assigned to in a for-in construct"),
FOR_IN_WITH_MULTIPLE_VARIABLES("Too many variable declarations in a for-in construct"),
FOR_IN_WITH_VARIABLE_INITIALIZER("Cannot initialize for-in variables"),
+ FORMAL_PARAMETER_IS_CONST("Formal parameters cannot be declared 'const'"),
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"),

Powered by Google App Engine
This is Rietveld 408576698