Releases: swiftlang/swift-syntax
Releases · swiftlang/swift-syntax
605.0.0-prerelease-2026-06-08
Merge pull request #3354 from rintaro/workaround-rdar178757853 [Tests] Prevent inlining of a test function
604.0.0-prerelease-2026-06-05
Merge pull request #3355 from rintaro/6.4-workaround-rdar178757853 [6.4][Tests] Prevent inlining of a test function
603.0.2
API Behavior Changes
SwiftSyntaxMacrosTestSupportnow supports Swift Testing in addition to XCTest- Description: Macro implementations can now be tested using Swift Testing. Calling
assertMacroExpansion()from a Swift Testing test will record failures as test issues automatically. - Pull Request: #3352
- Migration steps: None required. Existing tests using
SwiftSyntaxMacrosTestSupportwith XCTest continue to work unchanged, but you can convert such tests to Swift Testing if desired. - Notes: If your project has an explicit dependency on the
swift-testingpackage, rather than using a built-in copy of theTestingmodule, you may encounter build or runtime issues. This is a known limitation of using a non-built-in distribution of Swift Testing; the Distributions documentation covers this topic in detail. There are two ways to resolve this: (1) remove the dependency on theswift-testingpackage and switch to using a built-in copy, as the documentation recommends; or (2) importSwiftSyntaxMacrosGenericTestSupportinstead ofSwiftSyntaxMacrosTestSupportand supply your ownfailureHandler:closure that callsIssue.record()explicitly. (The latter works correctly even when using a package dependency.)
- Description: Macro implementations can now be tested using Swift Testing. Calling
Full Changelog: 603.0.1...603.0.2
603.0.0-prerelease-2026-06-05
Merge pull request #3356 from rintaro/6.3-workaround-rdar178757853 [6.3][Tests] Prevent inlining of a test function
604.0.0-prerelease-2026-04-21
Merge pull request #3316 from swiftlang/shahmishal-patch-1 Add group for swiftlang GitHub Actions
603.0.1
What's Changed
- Add explicit target dependency by @SimplyDanny in #3307
Full Changelog: 603.0.0...603.0.1
604.0.0-prerelease-2026-03-31
Merge pull request #3300 from cachemeifyoucan/eng/PR-can-import-versi…
604.0.0-prerelease-2026-03-24
Merge pull request #3298 from calda/cal--computed-var-body-macro
603.0.0
New APIs
-
SwiftIfConfig.StaticBuildConfigurationa data structure for a build configuration.- Description: This describes all of the aspects of a build configuration that are needed for #if evaluation. It is Codable so that it can be stored and replayed later.
- Pull Request: #3154
-
MacroExpansionContext.buildConfiguration- Description:
MacroExpansionContextnow hasbuildConfigurationproperty describing the build configuration that will be used with the generated source code. - Pull Request: #3154
- Description:
API Behavior Changes
Deprecations
API-Incompatible Changes
604.0.0-prerelease-2026-01-20
Merge pull request #3229 from myaumura/update-computed-properties-cod…