| Index: pkg/analysis_server/lib/src/services/completion/dart_completion_cache.dart
|
| diff --git a/pkg/analysis_server/lib/src/services/completion/dart_completion_cache.dart b/pkg/analysis_server/lib/src/services/completion/dart_completion_cache.dart
|
| index 67a7245acb0eaf92b58e302d82c33882232c77a0..7aa670474f96088ba7d05a2f9603cd857683e3ef 100644
|
| --- a/pkg/analysis_server/lib/src/services/completion/dart_completion_cache.dart
|
| +++ b/pkg/analysis_server/lib/src/services/completion/dart_completion_cache.dart
|
| @@ -24,7 +24,6 @@ import 'package:analyzer/src/generated/source.dart';
|
| * completion operation.
|
| */
|
| class DartCompletionCache extends CompletionCache {
|
| -
|
| /**
|
| * A hash of the import directives
|
| * or `null` if nothing has been cached.
|
| @@ -262,9 +261,14 @@ class DartCompletionCache extends CompletionCache {
|
| CompletionSuggestion suggestion = null;
|
| String completion = importElem.prefix.displayName;
|
| if (completion != null && completion.length > 0) {
|
| - suggestion = new CompletionSuggestion(CompletionSuggestionKind.INVOCATION,
|
| - DART_RELEVANCE_DEFAULT, completion, completion.length, 0,
|
| - importElem.isDeprecated, false);
|
| + suggestion = new CompletionSuggestion(
|
| + CompletionSuggestionKind.INVOCATION,
|
| + DART_RELEVANCE_DEFAULT,
|
| + completion,
|
| + completion.length,
|
| + 0,
|
| + importElem.isDeprecated,
|
| + false);
|
| LibraryElement lib = importElem.importedLibrary;
|
| if (lib != null) {
|
| suggestion.element = newElement_fromEngine(lib);
|
| @@ -280,7 +284,6 @@ class DartCompletionCache extends CompletionCache {
|
| */
|
| void _addNonImportedElementSuggestions(
|
| List<SearchMatch> matches, Set<LibraryElement> excludedLibs) {
|
| -
|
| // Exclude internal Dart SDK libraries
|
| for (var lib in context.sourceFactory.dartSdk.sdkLibraries) {
|
| if (lib.isInternal) {
|
|
|