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

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

Issue 14654013: Report CompileTimeErrorCode.INVALID_CONST_FACTORY (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Report CONST_FACTORY in parser Created 7 years, 7 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 9ab9a4ef6195f00f3d822d9bb8a5c380e1e9e15d..89a68e86e496de9082407235dba63d89b24abf91 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
@@ -35,6 +35,7 @@ public enum ParserErrorCode implements ErrorCode {
CONST_AND_FINAL("Members cannot be declared to be both 'const' and 'final'"),
CONST_AND_VAR("Members cannot be declared to be both 'const' and 'var'"),
CONST_CLASS("Classes cannot be declared to be 'const'"),
+ CONST_FACTORY("Only redirecting factory constructors can be declared to be 'const'"),
CONST_METHOD("Getters, setters and methods cannot be declared to be 'const'"),
CONST_TYPEDEF("Type aliases cannot be declared to be 'const'"),
CONSTRUCTOR_WITH_RETURN_TYPE("Constructors cannot have a return type"),

Powered by Google App Engine
This is Rietveld 408576698