mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
We have a hack where we use the ParsedDecl as the DeclContext, to handle completion during function signature parsing, which happens before the FuncDecl has been created. While fixing this properly would require a bigger change to the parser and AST, for now we just check if the ParsedDecl is a child context of CurDeclContext, and only use it then.
4 lines
147 B
Swift
4 lines
147 B
Swift
// RUN: %target-swift-ide-test -code-completion -code-completion-token=A -source-filename=%s
|
|
|
|
func searchTest(format: ()->String = { "" }#^A^#) {}
|