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

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

Issue 135803003: Translate index. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 11 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/src/com/google/dart/java2dart/Context.java
diff --git a/editor/util/plugins/com.google.dart.java2dart/src/com/google/dart/java2dart/Context.java b/editor/util/plugins/com.google.dart.java2dart/src/com/google/dart/java2dart/Context.java
index ca2736177f5b71345938facfc763888f2b5288b3..f8c256b4e8d8b0b0e47f8f88a2b924231c936768 100644
--- a/editor/util/plugins/com.google.dart.java2dart/src/com/google/dart/java2dart/Context.java
+++ b/editor/util/plugins/com.google.dart.java2dart/src/com/google/dart/java2dart/Context.java
@@ -394,6 +394,7 @@ public class Context {
* @return the not <code>null</code> {@link ConstructorDescription}, may be just added.
*/
public ConstructorDescription getConstructorDescription(IMethodBinding binding) {
+ binding = (IMethodBinding) Bindings.getDeclaration(binding);
ConstructorDescription description = bindingToConstructor.get(binding);
if (description == null) {
description = new ConstructorDescription(binding);
@@ -639,6 +640,7 @@ public class Context {
* {@link ConstructorDeclaration} is reference to the given Java signature.
*/
void putConstructorBinding(ConstructorDeclaration node, IMethodBinding binding) {
+ binding = (IMethodBinding) Bindings.getDeclaration(binding);
constructorToBinding.put(node, binding);
}

Powered by Google App Engine
This is Rietveld 408576698