[SourceKit] Omit internal parameters from filter name

The internal parameter names are just there to give an extra hint in the
source text for what the argument is. Consequently, we don't want to
allow filtering to match against them.
This commit is contained in:
Ben Langmuir
2016-01-14 14:25:32 -08:00
parent 879a8966ac
commit 7b3bd75b2a
6 changed files with 30 additions and 9 deletions

View File

@@ -873,6 +873,7 @@ void CompletionBuilder::getFilterName(CodeCompletionString *str,
bool shouldPrint = !C.isAnnotation();
switch (C.getKind()) {
case ChunkKind::TypeAnnotation:
case ChunkKind::CallParameterInternalName:
case ChunkKind::CallParameterClosureType:
case ChunkKind::CallParameterType:
case ChunkKind::DeclAttrParamEqual: