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

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

Issue 17570003: Report ParserErrorCode.STATIC_FUNCTION_DECLARATION (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Check all modifiers Created 7 years, 6 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: 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 4fd1cc25128287c76b8edd166fdb4bd0c08dddd8..43258924cfb79af5190f7dbe1567479cfd59818a 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
@@ -94,6 +94,7 @@ public enum ParserErrorCode implements ErrorCode {
INVALID_UNICODE_ESCAPE(
"An escape sequence starting with '\\u' must be followed by 4 hexidecimal digits or from 1 to 6 digits between '{' and '}'"),
LIBRARY_DIRECTIVE_NOT_FIRST("The library directive must appear before all other directives"),
+ LOCAL_FUNCTION_DECLARATION_MODIFIER("Local function declarations cannot specify any modifier"),
// TODO(brianwilkerson) Improve this message. We probably need to know the context in which we are
// parsing the assignable selector in order to get decent messages.
MISSING_ASSIGNABLE_SELECTOR("Missing selector such as \".<identifier>\" or \"[0]\""),

Powered by Google App Engine
This is Rietveld 408576698