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

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

Issue 10823127: Issue 4300. Support for 'external' keyword (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 5 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 c82f74a0eb1adba7f46c94ddc82f2e932498363b..50d2edd5eb3946c12de7fcc5e0a42524b00f9c40 100644
--- a/compiler/java/com/google/dart/compiler/parser/ParserErrorCode.java
+++ b/compiler/java/com/google/dart/compiler/parser/ParserErrorCode.java
@@ -64,6 +64,9 @@ public enum ParserErrorCode implements ErrorCode {
EXPECTED_TOKEN("Unexpected token '%s' (expected '%s')"),
// TODO(zundel): error message needs JUnit test
EXPECTED_VAR_FINAL_OR_TYPE("Expected 'var', 'final' or type"),
+ EXTERNAL_ONLY_METHOD("Only a top-level function, a method, a getter, a setter or an non-redirecting constructor can be specified as external"),
+ EXTERNAL_METHOD_BODY("External methods cannot have body"),
+ EXTERNAL_ABSTRACT("External methods cannot be abstract"),
// TODO(zundel): this error message is out of date
NATIVE_ONLY_CLASS("Native keyword can be specified only for classes"),
NATIVE_ONLY_CORE_LIB("Native keyword can be used only in corelib"),

Powered by Google App Engine
This is Rietveld 408576698