mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[SourceKit] Refactor parameter printing to use its own callbacks NFC
The current approach of visiting the param decl won't work when we want to visit the parameters of function *types*, or when visiting tuple elements (which aren't themselves decls). rdar://problem/24292226
This commit is contained in:
@@ -85,6 +85,13 @@ private:
|
||||
return OtherPrinter.printSynthesizedExtensionPost(ED, NTD);
|
||||
}
|
||||
|
||||
void printParameterPre(PrintParameterKind Kind) override {
|
||||
return OtherPrinter.printParameterPre(Kind);
|
||||
}
|
||||
void printParameterPost(PrintParameterKind Kind) override {
|
||||
return OtherPrinter.printParameterPost(Kind);
|
||||
}
|
||||
|
||||
void printNamePre(PrintNameContext Context) override {
|
||||
return OtherPrinter.printNamePre(Context);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user