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 b63156e0cc5fbe0a09f21d89026e7abb5e02d551..ae26e459c797ae6402bb406c81fe12a6a809b683 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 |
@@ -853,9 +853,11 @@ public class SyntaxTranslator extends org.eclipse.jdt.core.dom.ASTVisitor { |
@Override |
public boolean visit(org.eclipse.jdt.core.dom.FieldAccess node) { |
- return done(propertyAccess( |
+ PropertyAccess result = propertyAccess( |
translateExpression(node.getExpression()), |
- (SimpleIdentifier) translate(node.getName()))); |
+ (SimpleIdentifier) translate(node.getName())); |
+ context.putNodeBinding(result, node.resolveFieldBinding()); |
+ return done(result); |
} |
@Override |
@@ -1256,11 +1258,11 @@ public class SyntaxTranslator extends org.eclipse.jdt.core.dom.ASTVisitor { |
@Override |
public boolean visit(org.eclipse.jdt.core.dom.QualifiedName node) { |
- Token operator = new Token(TokenType.PERIOD, 0); |
- return done(new PropertyAccess( |
+ PropertyAccess result = propertyAccess( |
translateExpression(node.getQualifier()), |
- operator, |
- translateSimpleName(node.getName()))); |
+ translateSimpleName(node.getName())); |
+ context.putNodeBinding(result, node.resolveBinding()); |
+ return done(result); |
} |
@Override |