Index: editor/tools/plugins/com.google.dart.engine.services/src/com/google/dart/engine/services/internal/completion/CompletionProposalImpl.java |
diff --git a/editor/tools/plugins/com.google.dart.engine.services/src/com/google/dart/engine/services/internal/completion/CompletionProposalImpl.java b/editor/tools/plugins/com.google.dart.engine.services/src/com/google/dart/engine/services/internal/completion/CompletionProposalImpl.java |
index e461e3d6522d5fffa9b4f529379c9f342649bdf4..f065c668a366b9dc8fd003e918a68ea54793aeb9 100644 |
--- a/editor/tools/plugins/com.google.dart.engine.services/src/com/google/dart/engine/services/internal/completion/CompletionProposalImpl.java |
+++ b/editor/tools/plugins/com.google.dart.engine.services/src/com/google/dart/engine/services/internal/completion/CompletionProposalImpl.java |
@@ -18,6 +18,7 @@ package com.google.dart.engine.services.internal.completion; |
* |
* @coverage com.google.dart.engine.services.completion |
*/ |
+import com.google.dart.engine.element.Element; |
import com.google.dart.engine.services.completion.CompletionProposal; |
import com.google.dart.engine.services.completion.ProposalKind; |
import com.google.dart.engine.utilities.general.StringUtilities; |
@@ -25,6 +26,7 @@ import com.google.dart.engine.utilities.general.StringUtilities; |
public class CompletionProposalImpl implements CompletionProposal { |
// All fields must be initialized to ensure getters never return null. |
+ private Element element; |
private String completion = ""; |
private String returnType = ""; |
private String declaringType = ""; |
@@ -58,6 +60,11 @@ public class CompletionProposalImpl implements CompletionProposal { |
} |
@Override |
+ public Element getElement() { |
+ return element; |
+ } |
+ |
+ @Override |
public ProposalKind getKind() { |
return kind; |
} |
@@ -149,6 +156,12 @@ public class CompletionProposalImpl implements CompletionProposal { |
} |
@Override |
+ public CompletionProposal setElement(Element element) { |
+ this.element = element; |
+ return this; |
+ } |
+ |
+ @Override |
public CompletionProposal setKind(ProposalKind x) { |
kind = x; |
return this; |