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

Unified Diff: pkg/analysis_server/lib/src/services/completion/dart_completion_cache.dart

Issue 1398333002: Extract protocol_dart.dart APIs. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Add new files. Created 5 years, 2 months 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: 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 7aa670474f96088ba7d05a2f9603cd857683e3ef..2fbe91e867184ade29e1fb3b1c645591e6d12ee7 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
@@ -271,7 +271,7 @@ class DartCompletionCache extends CompletionCache {
false);
LibraryElement lib = importElem.importedLibrary;
if (lib != null) {
- suggestion.element = newElement_fromEngine(lib);
+ suggestion.element = convertElement(lib);
}
libraryPrefixSuggestions.add(suggestion);
_importedCompletions.add(suggestion.completion);

Powered by Google App Engine
This is Rietveld 408576698