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

Unified Diff: editor/tools/plugins/com.google.dart.engine.services/src/com/google/dart/engine/services/internal/completion/CompletionProposalImpl.java

Issue 69883003: Issue 249. Show documentation for highlighted code completion. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
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: 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;

Powered by Google App Engine
This is Rietveld 408576698