mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Since the two ExtInfos share a common ClangTypeInfo, and C++ doesn't let us forward declare nested classes, we need to hoist out AnyFunctionType::ExtInfo and SILFunctionType::ExtInfo to the top-level. We also add some convenience APIs on (AST|SIL)ExtInfo for frequently used withXYZ methods. Note that all non-default construction still goes through the builder's build() method. We do not add any checks for invariants here; those will be added later.
203 KiB
203 KiB