mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
* Instead of hoisting VarDecl in the bridging functions, do it in ASTGen. * Introduce `Decl::forEachDeclToHoist` to handle VarDecls in PatternBindingDecl, and EnumElementDecl in EnumCaseDecl. * Intorduce `withBridgedSwiftClosure(closure:call:)` as a callback mechanism between Swift and C++ * In `generate(sourceFile:)`, instead of using `generate(codeBlockItem:)` handle `CodeBlockItemSyntax.Item` manually to handle `TLCD` wrapping and `VarDecl` hoisting. * Make `generate(variableDecl:)` handle TLCD correctly.
5.1 KiB
5.1 KiB