7 Commits

Author SHA1 Message Date
Jeremy Schonfeld
83bc0c60be
(125263129) Remove _FoundationInternals symlink workaround in favor of package modifier 2024-03-22 16:56:15 -07:00
Tina Liu
7df1679687
Move files shared by FoundationEssentials and FoundationInternationalization to _FoundationInternals (#117)
- Add a folder `Sources/_FoundationInternals` to host internal files needed by both modules. Move LockedState.swift there.
- Add `Sources/_FoundationInternals` as a symlink inside both modules, so the files under `Sources/_FoundationInternals` appear as their own sources respectively.
2023-05-12 09:21:32 -07:00
Tina Liu
3aa00e5c3e
Revert "Create FoundationInternals, an internal module to host shared files used by FoundationInternationalization and FoundationEssentials (#101)" (#115)
* Revert "Create FoundationInternals, an internal module to host shared files used by FoundationInternationalization and FoundationEssentials (#101)"

This reverts commit 8f08a649db1f3eb31593cdae7a30c5e95cb614a7.

* Reapply fb718cd3fb9f058a5fd6d736cec9c2b99d6f7dc6 fix to the other restored LockedState
2023-05-11 15:19:01 -07:00
Tina Liu
8f08a649db
Create FoundationInternals, an internal module to host shared files used by FoundationInternationalization and FoundationEssentials (#101)
* Create FoundationInternals, an internal module to host shared files used by FoundationInternationalization and FoundationEssentials

- Modules will access FoundationInternals types with `package import FoundationInternals`. This is currently an experimental feature of `AccessLevelOnImport`.
- Move `LockedState` to FoundationInternals and publicize functions needed by other modules.
2023-05-10 12:16:20 -07:00
Alex Johnson
70342bd3f5
Fix lock not released when body throws (#97)
The lock was not properly released if the body passed to `withLockExtendingLifespanOfState()` threw an error.
2023-05-08 13:40:11 -07:00
Jeremy Schonfeld
8ce51672b6
(106775060) Update AttributedString sources for compatibility with FoundationPreview 2023-03-23 13:26:07 -07:00
Jeremy Schonfeld
a1f6ce5265
rdar://105145407 (PredicateExpressions.VariableID should use UInt not UUID) 2023-02-15 15:26:57 -08:00