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

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

Issue 214253002: Translate Java enums to Dart constants. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 9 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 e0e62c1000fdeb0b60381c98e9adfb5bacfaf83f..a7b7f6962d87664a9d7242ca1047d3c81b120a5f 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
@@ -184,7 +184,7 @@ public enum ParserErrorCode implements ErrorCode {
/**
* The severity of this error.
*/
- private final ErrorSeverity severity;
+ private final ErrorSeverity errorSeverity;
/**
* The template used to create the message to be displayed for this error.
@@ -200,23 +200,22 @@ public enum ParserErrorCode implements ErrorCode {
/**
* Initialize a newly created error code to have the given severity and message.
*
- * @param severity the severity of the error
+ * @param errorSeverity the severity of the error
* @param message the message template used to create the message to be displayed for the error
*/
- private ParserErrorCode(ErrorSeverity severity, String message) {
- this.severity = severity;
- this.message = message;
+ private ParserErrorCode(ErrorSeverity errorSeverity, String message) {
+ this(errorSeverity, message, null);
}
/**
* Initialize a newly created error code to have the given severity, message and correction.
*
- * @param severity the severity of the error
+ * @param errorSeverity the severity of the error
* @param message the template used to create the message to be displayed for the error
* @param correction the template used to create the correction to be displayed for the error
*/
- private ParserErrorCode(ErrorSeverity severity, String message, String correction) {
- this.severity = severity;
+ private ParserErrorCode(ErrorSeverity errorSeverity, String message, String correction) {
+ this.errorSeverity = errorSeverity;
this.message = message;
this.correction = correction;
}
@@ -227,7 +226,7 @@ public enum ParserErrorCode implements ErrorCode {
* @param message the message template used to create the message to be displayed for the error
*/
private ParserErrorCode(String message) {
- this(ErrorSeverity.ERROR, message);
+ this(ErrorSeverity.ERROR, message, null);
}
@Override
@@ -237,7 +236,7 @@ public enum ParserErrorCode implements ErrorCode {
@Override
public ErrorSeverity getErrorSeverity() {
- return severity;
+ return errorSeverity;
}
@Override

Powered by Google App Engine
This is Rietveld 408576698