Swift: Add basic support for experimental using decls

Note that we cannot write tests for these at the moment. Passing
```
-enable-experimental-feature DefaultIsolationPerFile
```
to the extractor results in:
```
error: experimental feature 'DefaultIsolationPerFile' cannot be enabled in production compile
```
This commit is contained in:
Jeroen Ketema
2025-10-30 16:00:12 +01:00
parent 67b6b9cd15
commit b9d0cb7746
17 changed files with 182 additions and 7 deletions

View File

@@ -117,6 +117,10 @@ class GenericContext(Element):
class EnumCaseDecl(Decl):
elements: list["EnumElementDecl"]
class UsingDecl(Decl):
is_main_actor: predicate
is_nonisolated: predicate
class ExtensionDecl(GenericContext, Decl):
extended_type_decl: "NominalTypeDecl"
protocols: list["ProtocolDecl"]