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.
147 B
147 B