You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Merge alternate symbol declarations across symbol graphs (#933)
* Merges alternate symbol declarations across symbol graphs
Fixes a bug with platform availability of a symbol's alternate declarations. This bug resulted in alternate symbol declarations only ever showing as having one supported platform, regardless of the symbol being declared across different symbol graphs for different platforms.
The issue was caused by alternate declarations not being merged across different symbol graphs, so that platform availability information was only stored for the first symbol graph that was processed, and further platform availability information was lost.
To fix this issue, `Symbol.mergeDeclaration(...)` now takes an extra parameter which takes in a list of alternate declarations from the symbol being merged in. Platform names are now merged across alternate declarations from different symbol graphs.
* Updates alternate declarations test to include multiple platforms
Updates `testAlternateDeclarations()` to validate that all supported platforms are propagated from the main declaration to any alternate declarations.
Resolves rdar://128573538.
0 commit comments