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

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

Issue 904603004: rename completion constants and cleanup comment (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 10 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 54357304f5840d1531d829df52c0df35e9423569..0e72827711a449d99c05da5070b28801bd398d40 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
@@ -178,7 +178,7 @@ class DartCompletionCache extends CompletionCache {
if (elem is ClassElement) {
importedClassMap[name] = elem;
}
- _addSuggestion(elem, COMPLETION_RELEVANCE_DEFAULT);
+ _addSuggestion(elem, DART_RELEVANCE_DEFAULT);
});
}
@@ -202,7 +202,7 @@ class DartCompletionCache extends CompletionCache {
if (elem is ClassElement) {
importedClassMap[name] = elem;
}
- _addSuggestion(elem, COMPLETION_RELEVANCE_DEFAULT);
+ _addSuggestion(elem, DART_RELEVANCE_DEFAULT);
});
} else {
// Exclude elements from prefixed imports
@@ -230,7 +230,7 @@ class DartCompletionCache extends CompletionCache {
if (completion != null && completion.length > 0) {
suggestion = new CompletionSuggestion(
CompletionSuggestionKind.INVOCATION,
- COMPLETION_RELEVANCE_DEFAULT,
+ DART_RELEVANCE_DEFAULT,
completion,
completion.length,
0,
@@ -258,7 +258,7 @@ class DartCompletionCache extends CompletionCache {
element.isPublic &&
!excludedLibs.contains(element.library) &&
!_importedCompletions.contains(element.displayName)) {
- _addSuggestion(element, COMPLETION_RELEVANCE_LOW);
+ _addSuggestion(element, DART_RELEVANCE_LOW);
}
}
});
@@ -334,7 +334,7 @@ class _NonLocalElementCacheVisitor extends GeneralizingElementVisitor {
@override
void visitClassElement(ClassElement element) {
- cache._addSuggestion(element, COMPLETION_RELEVANCE_DEFAULT);
+ cache._addSuggestion(element, DART_RELEVANCE_DEFAULT);
}
@override
@@ -349,16 +349,16 @@ class _NonLocalElementCacheVisitor extends GeneralizingElementVisitor {
@override
void visitFunctionElement(FunctionElement element) {
- cache._addSuggestion(element, COMPLETION_RELEVANCE_DEFAULT);
+ cache._addSuggestion(element, DART_RELEVANCE_DEFAULT);
}
@override
void visitFunctionTypeAliasElement(FunctionTypeAliasElement element) {
- cache._addSuggestion(element, COMPLETION_RELEVANCE_DEFAULT);
+ cache._addSuggestion(element, DART_RELEVANCE_DEFAULT);
}
@override
void visitTopLevelVariableElement(TopLevelVariableElement element) {
- cache._addSuggestion(element, COMPLETION_RELEVANCE_DEFAULT);
+ cache._addSuggestion(element, DART_RELEVANCE_DEFAULT);
}
}

Powered by Google App Engine
This is Rietveld 408576698