mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[CodeCompletion] Remove ... and & from function filter names
The filter name of a function should match the spelling of the function name according to the language except that we don't insert _ for unnamed parameters because underscores are legal inside identifiers and we don't want to introduce spurious matches (also, we keep the () on a parameterless function for disambiguation). rdar://problem/26118915
This commit is contained in:
@@ -1180,6 +1180,8 @@ void CompletionBuilder::getFilterName(CodeCompletionString *str,
|
||||
case ChunkKind::DeclAttrParamEqual:
|
||||
case ChunkKind::Comma:
|
||||
case ChunkKind::Whitespace:
|
||||
case ChunkKind::Ellipsis:
|
||||
case ChunkKind::Ampersand:
|
||||
continue;
|
||||
case ChunkKind::CallParameterColon:
|
||||
// Since we don't add the type, also don't add the space after ':'.
|
||||
|
||||
Reference in New Issue
Block a user