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
Promote SourceLocation._filePath to proper, non-underscored SPI. (#1334)
This PR introduces an `@_spi var filePath` property on `SourceLocation`
with the intent of replacing the existing underscored/unsupported
`_filePath` property.
Because Xcode 16 through 26 directly encodes and decodes instances of
`SourceLocation`, we can't just stop encoding/decoding the `_filePath`
key and need to keep it there for at least a Swift release or two, until
Apple's fork of Swift Testing has been updated to include the new
encoding key. At that point we can remove the old one. (We'll need to
introduce an `EncodedSourceLocation` structure at that point and keep
including the underscored key for the v0 JSON stream, but that's not a
"today" problem.)
### Checklist:
- [x] Code and documentation should follow the style of the [Style
Guide](https://github.com/apple/swift-testing/blob/main/Documentation/StyleGuide.md).
- [x] If public symbols are renamed or modified, DocC references should
be updated.
0 commit comments