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

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

Issue 107833002: New analyzer snapshot. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years 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/src/com/google/dart/java2dart/SyntaxTranslator.java
diff --git a/editor/util/plugins/com.google.dart.java2dart/src/com/google/dart/java2dart/SyntaxTranslator.java b/editor/util/plugins/com.google.dart.java2dart/src/com/google/dart/java2dart/SyntaxTranslator.java
index 1881be93f587b6aeef04ce9606d38616bf8616af..d7f93616bd438680a6efef90bfb376f5c6acf180 100644
--- a/editor/util/plugins/com.google.dart.java2dart/src/com/google/dart/java2dart/SyntaxTranslator.java
+++ b/editor/util/plugins/com.google.dart.java2dart/src/com/google/dart/java2dart/SyntaxTranslator.java
@@ -769,12 +769,13 @@ public class SyntaxTranslator extends org.eclipse.jdt.core.dom.ASTVisitor {
@Override
public boolean visit(org.eclipse.jdt.core.dom.FieldDeclaration node) {
- boolean isNotPublic = !org.eclipse.jdt.core.dom.Modifier.isPublic(node.getModifiers());
+ boolean isPublic = org.eclipse.jdt.core.dom.Modifier.isPublic(node.getModifiers());
boolean isStatic = org.eclipse.jdt.core.dom.Modifier.isStatic(node.getModifiers());
boolean isFinal = false;
// interface field
org.eclipse.jdt.core.dom.ASTNode parent = node.getParent();
if (parent instanceof TypeDeclaration && ((TypeDeclaration) parent).isInterface()) {
+ isPublic = true;
isStatic = true;
isFinal = true;
}
@@ -783,7 +784,7 @@ public class SyntaxTranslator extends org.eclipse.jdt.core.dom.ASTVisitor {
translateJavadoc(node),
isStatic,
translateVariableDeclarationList(isFinal, node.getType(), node.fragments()));
- if (isNotPublic) {
+ if (!isPublic) {
context.putPrivateClassMember(fieldDeclaration);
}
return done(fieldDeclaration);

Powered by Google App Engine
This is Rietveld 408576698