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

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

Issue 56933002: Version 0.8.10.1 (Closed) Base URL: http://dart.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 1 month 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/editor/util/plugins/com.google.dart.java2dart/resources/java_core.dart
===================================================================
--- dart/editor/util/plugins/com.google.dart.java2dart/resources/java_core.dart (revision 29785)
+++ dart/editor/util/plugins/com.google.dart.java2dart/resources/java_core.dart (working copy)
@@ -40,6 +40,13 @@
if (oTypeName == "${tTypeName}Impl") {
return true;
}
+ if (tTypeName == "FormalParameter") {
+ return
+ oTypeName == "DefaultFormalParameter" ||
+ oTypeName == "FieldNormalParameter" ||
+ oTypeName == "FunctionTypedFormalParameter" ||
+ oTypeName == "SimpleFormalParameter";
+ }
if (tTypeName == "MethodElement") {
if (oTypeName == "MethodMember") {
return true;
@@ -272,7 +279,7 @@
}
class RuntimeException extends JavaException {
- RuntimeException([String message = "", Exception cause = null]) :
+ RuntimeException({String message: "", Exception cause: null}) :
super(message, cause);
}
@@ -436,6 +443,10 @@
return a || b;
}
+bool javaBooleanAnd(bool a, bool b) {
+ return a && b;
+}
+
class JavaStringBuilder {
StringBuffer sb = new StringBuffer();
String toString() => sb.toString();

Powered by Google App Engine
This is Rietveld 408576698