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

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

Issue 22481002: Issue 12158. Report error when user code uses 'native' clause. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 4 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 28c93a3f5784f69a15b925319bc2555554d44d96..6b18986effe8326fab62ae181f2ed3233b6d0729 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
@@ -136,6 +136,8 @@ public enum ParserErrorCode implements ErrorCode {
MULTIPLE_WITH_CLAUSES("Each class definition can have at most one with clause"),
NAMED_FUNCTION_EXPRESSION("Function expressions cannot be named"),
NAMED_PARAMETER_OUTSIDE_GROUP("Named parameters must be enclosed in curly braces ('{' and '}')"),
+ NATIVE_CLAUSE_IN_NON_SDK_CODE(
+ "Native clause can only be used in the SDK and code that is loaded through native extensions"),
NATIVE_FUNCTION_BODY_IN_NON_SDK_CODE(
"Native functions can only be declared in the SDK and code that is loaded through native extensions"),
NON_CONSTRUCTOR_FACTORY("Only constructors can be declared to be a 'factory'"),

Powered by Google App Engine
This is Rietveld 408576698