| Index: pkg/analysis_server/lib/src/services/completion/imported_reference_contributor.dart
|
| diff --git a/pkg/analysis_server/lib/src/services/completion/imported_reference_contributor.dart b/pkg/analysis_server/lib/src/services/completion/imported_reference_contributor.dart
|
| index 17594f83d69abc4b25446f1328db2d543ee43f20..5608f8f9bc959c40460f1d992983ae7c17b8563b 100644
|
| --- a/pkg/analysis_server/lib/src/services/completion/imported_reference_contributor.dart
|
| +++ b/pkg/analysis_server/lib/src/services/completion/imported_reference_contributor.dart
|
| @@ -30,17 +30,19 @@ class ImportedReferenceContributor extends DartCompletionContributor {
|
| @override
|
| bool computeFast(DartCompletionRequest request) {
|
| OpType optype = request.optype;
|
| - if (optype.includeReturnValueSuggestions ||
|
| - optype.includeTypeNameSuggestions ||
|
| - optype.includeVoidReturnSuggestions ||
|
| - optype.includeConstructorSuggestions) {
|
| - builder = new _ImportedSuggestionBuilder(request, optype);
|
| - builder.shouldWaitForLowPrioritySuggestions =
|
| - shouldWaitForLowPrioritySuggestions;
|
| - // If target is an argument in an argument list
|
| - // then suggestions may need to be adjusted
|
| - suggestionsComputed = builder.computeFast(request.target.containingNode);
|
| - return suggestionsComputed && request.target.argIndex == null;
|
| + if (!optype.isPrefixed) {
|
| + if (optype.includeReturnValueSuggestions ||
|
| + optype.includeTypeNameSuggestions ||
|
| + optype.includeVoidReturnSuggestions ||
|
| + optype.includeConstructorSuggestions) {
|
| + builder = new _ImportedSuggestionBuilder(request, optype);
|
| + builder.shouldWaitForLowPrioritySuggestions =
|
| + shouldWaitForLowPrioritySuggestions;
|
| + // If target is an argument in an argument list
|
| + // then suggestions may need to be adjusted
|
| + suggestionsComputed = builder.computeFast(request.target.containingNode);
|
| + return suggestionsComputed && request.target.argIndex == null;
|
| + }
|
| }
|
| return true;
|
| }
|
|
|