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

Unified Diff: editor/util/plugins/com.google.dart.java2dart_test/src/com/google/dart/java2dart/SemanticTest.java

Issue 15675016: More fixes for java2dart and status files. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 6 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_test/src/com/google/dart/java2dart/SemanticTest.java
diff --git a/editor/util/plugins/com.google.dart.java2dart_test/src/com/google/dart/java2dart/SemanticTest.java b/editor/util/plugins/com.google.dart.java2dart_test/src/com/google/dart/java2dart/SemanticTest.java
index f437fdbaa0b16cd6091962d75da433c52dd4366c..18793bf51d4cf66db86c3a338a2ca2f6083b2a33 100644
--- a/editor/util/plugins/com.google.dart.java2dart_test/src/com/google/dart/java2dart/SemanticTest.java
+++ b/editor/util/plugins/com.google.dart.java2dart_test/src/com/google/dart/java2dart/SemanticTest.java
@@ -735,6 +735,7 @@ public class SemanticTest extends AbstractSemanticTest {
" print(1);",
" }",
" int compareTo(Test other) => ordinal - other.ordinal;",
+ " int hashCode => ordinal;",
" String toString() => name;",
"}",
"class Test_EOF extends Test {",
@@ -778,6 +779,7 @@ public class SemanticTest extends AbstractSemanticTest {
" MyEnum(this.name, this.ordinal) {",
" }",
" int compareTo(MyEnum other) => ordinal - other.ordinal;",
+ " int hashCode => ordinal;",
" String toString() => name;",
"}"),
getFormattedSource(unit));
@@ -811,6 +813,7 @@ public class SemanticTest extends AbstractSemanticTest {
" Test(this.name, this.ordinal) {",
" }",
" int compareTo(Test other) => ordinal - other.ordinal;",
+ " int hashCode => ordinal;",
" String toString() => name;",
"}"),
getFormattedSource(unit));
@@ -859,6 +862,7 @@ public class SemanticTest extends AbstractSemanticTest {
" _jtd_constructor_1_impl(int p) {",
" }",
" int compareTo(Test other) => ordinal - other.ordinal;",
+ " int hashCode => ordinal;",
" String toString() => name;",
"}"),
getFormattedSource(unit));
@@ -1673,6 +1677,7 @@ public class SemanticTest extends AbstractSemanticTest {
" A(this.name, this.ordinal) {",
" }",
" int compareTo(A other) => ordinal - other.ordinal;",
+ " int hashCode => ordinal;",
" String toString() => name;",
"}",
"class B {",

Powered by Google App Engine
This is Rietveld 408576698