mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
There are two general constructor forms here: - One took the number of parameter lists, to be filled in later. Now, this takes a boolean indicating if there is an implicit 'self'. - The other one took the actual parameter lists and filled them in right away. This now takes a separate 'self' ParamDecl and ParameterList. Instead of storing the number of parameter lists, an AbstractFunctionDecl now only needs to store if there is a 'self' or not. I've updated most places that construct AbstractFunctionDecls to properly use these new forms. In the ClangImporter, there is more code that remains to be untangled, so we continue to build multiple ParameterLists and unpack them into a ParamDecl and ParameterList at the last minute.
5.7 KiB
5.7 KiB