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

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

Issue 8948001: Updates dartc to recognize 'default' keyword on interface and updated factory method syntax (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Feedback from mmendez Created 9 years 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 4df0edcc6949825b2ff5e0020c9489ec77d8689c..d75c85a3adbbc5a1aa679483a2daaf4399c6a722 100644
--- a/compiler/java/com/google/dart/compiler/parser/ParserErrorCode.java
+++ b/compiler/java/com/google/dart/compiler/parser/ParserErrorCode.java
@@ -22,6 +22,8 @@ public enum ParserErrorCode implements ErrorCode {
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"),
+ DEPRECATED_USE_OF_FACTORY_KEYWORD(ErrorSeverity.WARNING,
+ "Deprecated use of the 'factory' keyword: use 'default' instead"),
DISALLOWED_ABSTRACT_KEYWORD("Abstract keyword not allowed here"),
DISALLOWED_FACTORY_KEYWORD("Factory keyword not allowed here"),
EXPECTED_ARRAY_OR_MAP_LITERAL("Expected array or map literal"),

Powered by Google App Engine
This is Rietveld 408576698