Commit Graph

63 Commits

Author SHA1 Message Date
zoecarver
371eb9143d [astgen] Add ReturnStmt visitor. 2022-10-30 10:55:17 -07:00
zoecarver
bec4ff77f3 [astgen] Use ASTNode to implement BraceStmt correctly. 2022-10-30 10:50:13 -07:00
Robert Widmann
394d0645d9 Tidy Up The C AST Bridging File A Bit 2022-10-27 11:11:12 -07:00
Robert Widmann
822fd47b8a Add Utilities to Retrieve the (Opened) Type of a Macro Reference 2022-10-27 11:11:11 -07:00
Robert Widmann
032e8d5e1d Start Lowering Generic ASTs
Lower generic argument lists and generic parameter lists, then expand the lowering for identifiers to take generic arguments into account.
2022-10-27 11:11:11 -07:00
Robert Widmann
f4f7f7f2ce Finish Off ASTGen Implementation for Types
Complete the lowering for the type ASTs present in SwiftSyntax to C++ TypeReprs
2022-10-27 11:11:11 -07:00
Doug Gregor
227bc1a168 [ASTGen] Clean up casting with source locations 2022-10-07 10:19:06 -07:00
Doug Gregor
7483373326 [ASTGen] Use UTF-8 rather than C char, and use BridgedIdentifier consistently 2022-10-07 10:19:06 -07:00
zoecarver
73fe41373b Support functions with statements in their body.
(cherry picked from commit 5935670931)
2022-10-07 10:19:05 -07:00
zoecarver
93f1505e8a Add support for bool literals.
(cherry picked from commit d58a01db95)
2022-10-07 10:19:05 -07:00
zoecarver
f7d501d770 Add support for structs/classes.
(cherry picked from commit 1b1944ea48)
2022-10-07 10:19:05 -07:00
zoecarver
bed2742ba8 Make ASTGen a swift package
(cherry picked from commit 4e9e5fe6a8)
2022-10-07 10:19:05 -07:00
zoecarver
80200ec23a Add Swift-side infrastructure for ASTGen.
(cherry picked from commit 7bc67c9f12)
2022-10-07 10:18:40 -07:00