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

Unified Diff: dart/compiler/java/com/google/dart/compiler/backend/js/ClosureJsErrorCode.java

Issue 9353015: Remove dartc optimizing backend. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fix minor test issues 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: dart/compiler/java/com/google/dart/compiler/backend/js/ClosureJsErrorCode.java
diff --git a/dart/compiler/java/com/google/dart/compiler/backend/js/ClosureJsErrorCode.java b/dart/compiler/java/com/google/dart/compiler/backend/js/ClosureJsErrorCode.java
deleted file mode 100644
index f3b3704973369a8e9ede5a8da71ea1943742b96a..0000000000000000000000000000000000000000
--- a/dart/compiler/java/com/google/dart/compiler/backend/js/ClosureJsErrorCode.java
+++ /dev/null
@@ -1,49 +0,0 @@
-// Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-package com.google.dart.compiler.backend.js;
-
-import com.google.dart.compiler.ErrorCode;
-import com.google.dart.compiler.ErrorSeverity;
-import com.google.dart.compiler.SubSystem;
-
-/**
- * {@link ErrorCode}s for Closure JavaScript backend.
- */
-public enum ClosureJsErrorCode implements ErrorCode {
- INTERNAL_ERROR("Closure compiler error: %s");
- private final ErrorSeverity severity;
- private final String message;
-
- /**
- * Initialize a newly created error code to have the given message and ERROR severity.
- */
- private ClosureJsErrorCode(String message) {
- this(ErrorSeverity.ERROR, message);
- }
-
- /**
- * Initialize a newly created error code to have the given severity and message.
- */
- private ClosureJsErrorCode(ErrorSeverity severity, String message) {
- this.severity = severity;
- this.message = message;
- }
-
- public String getMessage() {
- return message;
- }
-
- public ErrorSeverity getErrorSeverity() {
- return severity;
- }
-
- public SubSystem getSubSystem() {
- return SubSystem.CLOSURE_BACKEND;
- }
-
- @Override
- public boolean needsRecompilation() {
- return true;
- }
-}

Powered by Google App Engine
This is Rietveld 408576698