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

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

Issue 9421001: Issue 1606/1108. The 'native' keyword is supposed to only be allowed in core libraries. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 10 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
diff --git a/compiler/java/com/google/dart/compiler/parser/ParserErrorCode.java b/compiler/java/com/google/dart/compiler/parser/ParserErrorCode.java
index 319c8955563914ed089199906268a977c8dab00b..8ce8ee3c3f169eb2b97f1407bca6d9f96e249ac8 100644
--- a/compiler/java/com/google/dart/compiler/parser/ParserErrorCode.java
+++ b/compiler/java/com/google/dart/compiler/parser/ParserErrorCode.java
@@ -49,7 +49,9 @@ public enum ParserErrorCode implements ErrorCode {
EXPECTED_TOKEN("Unexpected token '%s' (expected '%s')"),
EXPECTED_VAR_FINAL_OR_TYPE("Expected 'var', 'final' or type"),
EXPORTED_FUNCTIONS_MUST_BE_STATIC("Exported functions must be static"),
- EXTENDED_NATIVE_CLASS("Native classes must not extend other classes"),
+ NATIVE_MUST_NOT_EXTEND("Native classes must not extend other classes"),
+ NATIVE_ONLY_CLASS("Native keyword can be specified only for classes"),
+ NATIVE_ONLY_CORE_LIB("Native keyword can be used only in corelib"),
FACTORY_CANNOT_BE_ABSTRACT("A factory cannot be abstract"),
FACTORY_CANNOT_BE_STATIC("A factory cannot be static"),
FACTORY_MEMBER_IN_INTERFACE("Factory members are not allowed in interfaces"),

Powered by Google App Engine
This is Rietveld 408576698