Rintaro Ishizaki
f47c2b353f
[ASTGen] Generate CustomAttr
...
Update macro tests
2024-11-14 15:10:12 -08:00
Rintaro Ishizaki
0f1b650716
[AST] MacroRoleAttr accept any 'Expr *' as the conformances arguments
2024-11-14 15:10:11 -08:00
Rintaro Ishizaki
093d0dffb4
[ASTGen] Generate MacroDecl
2024-11-14 15:10:08 -08:00
Rintaro Ishizaki
0ba92d84e5
[ASTGen] Generate closure signatures
...
Still TODO:
* Capture list
* Anonymous parameters
2024-11-11 12:21:38 -08:00
Alejandro Alonso
ba3bc1d5f1
Implement ASTGen changes for integer generics from Swift Syntax
...
Support negatives
2024-11-06 13:54:59 -08:00
Rintaro Ishizaki
47f27a411c
Merge pull request #77398 from rintaro/astgen-keypathexpr
...
[ASTGen] Generate Swift key-path expressions
2024-11-06 10:15:37 -08:00
Rintaro Ishizaki
dc156a644a
[ASTGen] Generate Swift key-path expressions
2024-11-05 13:38:21 -08:00
Rintaro Ishizaki
e566a746c8
[ASTGen] Support macro expanded buffer
...
* Make ExportedSourceFile hold any Syntax as the root node
* Move `ExportedSourceFileRequest::evaluate()` to `ParseRequests.cpp`
* Pass the decl context and `GeneatedSourceFileInfo::Kind` to
`swift_ASTGen_parseSourceFile()` to customize the parsing
* Make `ExportedSourceFile` to hold an arbitrary Syntax node
* Move round-trip checking into `ExportedSourceFileRequest::evaluate()`
* Split `parseSourceFileViaASTGen` completely from C++ parsing logic
(in `ParseSourceFileRequest::evaluate()`)
* Remove 'ParserDiagnostics' experimental feature: Now that we have
ParserASTGen mode which includes the swift-syntax parser diagnostics.
2024-11-05 11:00:33 -08:00
Rintaro Ishizaki
dfdba15121
[ASTGen] Generrate MacroExpansionExpr
2024-10-30 22:43:26 -07:00
Erik Eckstein
ed67e36ce5
bridging: reduce #ifdef USED_IN_CPP_SOURCE in bridging headers
...
Especially avoid any constructors in `#ifdef USED_IN_CPP_SOURCE` blocks, because this breaks Windows ARM64.
2024-10-25 09:47:56 +02:00
Rintaro Ishizaki
66138e8395
[ASTGen] Generate ForceValueExpr and BindOptionalExpr
2024-10-13 07:30:36 -07:00
Hamish Knight
7c3f965578
Merge pull request #76979 from hamishknight/regex-request
...
Requestify regex pattern parsing
2024-10-12 19:19:09 +01:00
Hamish Knight
6a435960b7
Requestify regex pattern parsing
...
Instead of doing the pattern parsing in both the
C++ parser and ASTGen, factor out the parsing into
a request that returns the pattern to emit, regex
type, and version. This can then be lazily run
during type-checking.
2024-10-11 19:25:58 +01:00
Hamish Knight
21cbfc4567
NFC: Remove unused var
2024-10-11 19:25:57 +01:00
Rintaro Ishizaki
cb6372a9c4
[ASTGen] Generate EditorPlaceholderExpr and 'do' expressions
2024-10-11 09:34:41 -07:00
Rintaro Ishizaki
e7a2102203
[ASTGen] Generate UnresolvedSpecializeExpr
2024-10-08 09:47:12 -07:00
Rintaro Ishizaki
834d98dca8
[ASTGen] Genrate InOutExpr
2024-10-08 09:47:11 -07:00
Rintaro Ishizaki
09f49b0c87
[ASTGen] Generate FloatLiteralExpr
2024-10-08 09:46:56 -07:00
Rintaro Ishizaki
7d9ba2d36d
[ASTGen] Generate RegexLiteralExpr, SubscriptExpr, and SuperRefExpr
2024-10-08 09:34:17 -07:00
Rintaro Ishizaki
bd8ee9eb1e
[ASTGen] Move some code to MiscBridging.cpp
...
Also this fixes a weird 'undefined symbol' error when linking with gold.
rdar://137326126
2024-10-07 23:34:14 +00:00
Erik Eckstein
b0dd1ab4ab
SIL: make SubstitutionMap CustomStringConvertible
2024-10-07 09:00:27 +02:00
Rintaro Ishizaki
b5859240ab
[ASTGen] Split ASTBridging.cpp into multiple files
...
ASTBridging.cpp was getting too big.
2024-10-04 10:48:56 -07:00