mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[CodeCompletion] Pre-expand closures in argument completion
When completing a single argument for a trailing closure, pre-expand the closure expression syntax instead of using a placeholder. It's not valid to pass a non-closure anyway. rdar://62189182
This commit is contained in:
committed by
John McCall
parent
2bf014dc74
commit
37b98af4e6
@@ -1231,6 +1231,7 @@ void CompletionBuilder::getFilterName(CodeCompletionString *str,
|
||||
case ChunkKind::TypeAnnotation:
|
||||
case ChunkKind::CallParameterInternalName:
|
||||
case ChunkKind::CallParameterClosureType:
|
||||
case ChunkKind::CallParameterClosureExpr:
|
||||
case ChunkKind::CallParameterType:
|
||||
case ChunkKind::DeclAttrParamColon:
|
||||
case ChunkKind::Comma:
|
||||
|
||||
Reference in New Issue
Block a user