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

Unified Diff: editor/util/plugins/com.google.dart.java2dart/resources/java_core.dart

Issue 22285004: New analyzer_experimental snapshot. (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/util/plugins/com.google.dart.java2dart/resources/java_core.dart
diff --git a/editor/util/plugins/com.google.dart.java2dart/resources/java_core.dart b/editor/util/plugins/com.google.dart.java2dart/resources/java_core.dart
index 01ffd5d3315059e322a052a4f7057a83f33aec5f..dc5fe0570ed1b08f708bb9d75eaf47e9d78b1fcd 100644
--- a/editor/util/plugins/com.google.dart.java2dart/resources/java_core.dart
+++ b/editor/util/plugins/com.google.dart.java2dart/resources/java_core.dart
@@ -258,10 +258,14 @@ class RuntimeException implements Exception {
class JavaException implements Exception {
final String message;
- final Exception e;
- JavaException([this.message = "", this.e = null]);
- JavaException.withCause(this.e) : message = null;
- String toString() => "JavaException: $message $e";
+ final Exception cause;
+ JavaException([this.message = "", this.cause = null]);
+ JavaException.withCause(this.cause) : message = null;
+ String toString() => "JavaException: $message $cause";
+}
+
+class IOException extends JavaException {
+ IOException([message = "", cause = null]) : super(message, cause);
}
class IllegalArgumentException implements Exception {
@@ -478,6 +482,12 @@ bool javaSetAdd(Set s, o) {
return false;
}
+javaMapPut(Map target, key, value) {
+ var oldValue = target[key];
+ target[key] = value;
+ return oldValue;
+}
+
void javaMapPutAll(Map target, Map source) {
source.forEach((k, v) {
target[k] = v;
@@ -521,3 +531,8 @@ class JavaStringBuilder {
sb = new StringBuffer();
}
}
+
+abstract class Enum<E> implements Comparable<E> {
+ int get ordinal;
+ String get name;
+}

Powered by Google App Engine
This is Rietveld 408576698