Files
Saleem Abdulrasool 1470033992 AST,Parse,Sema,Serialization: add support for parsing @com attributes
Building on the previous addition of `-enable-experimental-com-interop` flag, this
commit adds full compiler support for declaring COM types via the `@com` attribute.

Protocols annotated with `@com(interface: "...")` declare COM interfaces with a
specific Interface ID. Classes annotated with `@com` or
`@com(implementation: "...", threading: ...)` declare COM coclasses with an
optional Class ID and threading model. The compiler validates that the correct
arguments are used for each declaration kind, diagnoses invalid GUID formats, and
serializes this metadata into swiftmodules so users can access this information
when importing COM libraries.

This provides the necessary plumbing to enable COM interop as a first-class feature
in Swift.
2026-06-25 09:59:09 -07:00
..