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

Unified Diff: editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/error/CompileTimeErrorCode.java

Issue 15271006: Report DUPLICATE_CONSTRUCTOR_NAME and other scope fixes (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Revert most changes and mark tests invalid. 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
« no previous file with comments | « no previous file | editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/verifier/ErrorVerifier.java » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/error/CompileTimeErrorCode.java
diff --git a/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/error/CompileTimeErrorCode.java b/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/error/CompileTimeErrorCode.java
index cbb3ef955352a17c04f6d1f6118cdff9102267fd..fac71f90e30148be3d6c48d43b7fa414a1a3fcc3 100644
--- a/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/error/CompileTimeErrorCode.java
+++ b/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/error/CompileTimeErrorCode.java
@@ -104,7 +104,7 @@ public enum CompileTimeErrorCode implements ErrorCode {
* class.
*/
CONFLICTING_CONSTRUCTOR_NAME_AND_FIELD(
- "'%s' cannot be used to name a constructor and a method in this class"),
+ "'%s' cannot be used to name a constructor and a field in this class"),
/**
* 7.6 Constructors: A constructor name always begins with the name of its immediately enclosing
@@ -246,6 +246,20 @@ public enum CompileTimeErrorCode implements ErrorCode {
/**
* 3.1 Scoping: It is a compile-time error if there is more than one entity with the same name
* declared in the same scope.
+ */
+ DUPLICATE_CONSTRUCTOR_DEFAULT("The default constructor is already defined"),
+
+ /**
+ * 3.1 Scoping: It is a compile-time error if there is more than one entity with the same name
+ * declared in the same scope.
+ *
+ * @param duplicateName the name of the duplicate entity
+ */
+ DUPLICATE_CONSTRUCTOR_NAME("The constructor with name '%s' is already defined"),
+
+ /**
+ * 3.1 Scoping: It is a compile-time error if there is more than one entity with the same name
+ * declared in the same scope.
*
* @param duplicateName the name of the duplicate entity
*/
« no previous file with comments | « no previous file | editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/verifier/ErrorVerifier.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698