| Index: pkg/analysis_server/lib/src/provisional/completion/dart/completion_target.dart
|
| diff --git a/pkg/analysis_server/lib/src/provisional/completion/dart/completion_target.dart b/pkg/analysis_server/lib/src/provisional/completion/dart/completion_target.dart
|
| index 7e7ae5cb97189d10d70c5ef170eea38fe99f44e2..9e998e07fbd026c700ddeb186fd9b700f805ea66 100644
|
| --- a/pkg/analysis_server/lib/src/provisional/completion/dart/completion_target.dart
|
| +++ b/pkg/analysis_server/lib/src/provisional/completion/dart/completion_target.dart
|
| @@ -199,14 +199,14 @@ class CompletionTarget {
|
| Token commentToken =
|
| _getContainingCommentToken(entity.beginToken, offset);
|
| if (commentToken != null) {
|
| - entity = commentToken;
|
| // If the preceding comment is dartdoc token, then update
|
| // the containing node to be the dartdoc comment.
|
| // Otherwise completion is not required.
|
| Comment docComment =
|
| _getContainingDocComment(containingNode, commentToken);
|
| if (docComment != null) {
|
| - containingNode = docComment;
|
| + return new CompletionTarget._(
|
| + compilationUnit, offset, docComment, commentToken, false);
|
| } else {
|
| return new CompletionTarget._(compilationUnit, offset,
|
| compilationUnit, commentToken, true);
|
|
|