Allan Shortlidge
82e4e50c93
Distributed: Fix some deprecation warnings in DistributedResolvableMacro.
2025-04-01 13:11:36 -07:00
Konrad `ktoso` Malawski
8430749e81
[Distributed] Allow @Resolvable to work with available on specific func ( #80296 )
...
resolves rdar://147892011
2025-03-26 05:30:51 -07:00
Konrad `ktoso` Malawski
39687f1e83
[Distributed] Carry SPI attribute to stub types ( #79987 )
...
* [Distributed] Carry SPI attribute to stub types
* Cleaner identifier checking
2025-03-18 04:39:04 -07:00
Allan Shortlidge
b1d7ccca0f
SwiftMacros: Remove unnecessary .as() cast from DistributedResolvableMacro.
...
Resolves the following warning:
```
warning: 'as' is deprecated: This cast will always succeed
```
2024-12-13 11:10:48 -08:00
Konrad `ktoso` Malawski
4da5b64021
[DistributedResolvableMacro] cannot use if expressions
2024-12-03 14:59:16 +09:00
Konrad `ktoso` Malawski
138f145ab9
[Distributed] @Resolvable now handles primary associated types in protocols
...
Previously we would not propagate those into the generated distributed
actor, making a lot of generic distributed actor protocols impossible to
express.
We indeed cannot handle protocols WITHOUT primary associated types, but
we certainly can handle them with!
This resolves rdar://139332556
2024-12-03 14:59:15 +09:00
Alejandro Alonso
eed695d679
Add some ASTGen tests
2024-11-06 13:56:08 -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
1fb78394ce
[Macros] Remove unused dependency to SwiftOperators
...
ObservationMacros and SwiftMacros don't use anything in SwiftOperators
2024-06-17 15:39:03 -07:00
Konrad `ktoso` Malawski
c42ecb0908
[Distributed] Remove "Stdlib" in macro as it is not understood in user code ( #74417 )
2024-06-14 23:03:33 +09:00
Konrad `ktoso` Malawski
b77685efe0
[Distributed] Remove diagnostic emitting from macro, rely on compiler
...
The macro cannot diagnose some situations, or rather, would diagnose too
aggressively, because it cannot inspect the type declarations of all
invokved types, and therefore we're unable to reliably report errors
only when necessary.
Originally I thought we don't want to emit macro code that "may fail to
compile" but we don't really have a choice.
This patch removes a manual diagnostic, and enables more correct code to
properly use @Resolvable protocols.
2024-05-15 16:12:50 +09:00
Konrad `ktoso` Malawski
7224178b85
[TaskLocal] Carry access control modifiers into synthesized property ( #73475 )
2024-05-07 20:13:23 +09:00
Pavel Yaskevich
e6b445b8d1
[SE-0428] NFC: Rename _DistributedProtocol macro into Resolvable
...
The proposal was [accepted with modifications](https://forums.swift.org/t/accepted-with-modifications-se-0428-resolve-distributedactor-protocols/71366 )
The decision was made to change the spelling of the attached macro
in the proposal from @DistributedProtocol to `@Resolvable`
(or `@Distributed.Resolvable` if disambiguation is needed).
2024-04-22 14:18:11 -07:00