Commit f807ce6
committed
[SwiftRefactor] PackageManifest: Make a couple of properties externally accessible
In it's current state `AddPackageTarget` does multiple things:
1. Updates the manifest to introduce new targets and dependencies.
2. Generates one or more auxiliary files depending on the type of
target being added (i.e. a primary file for the target and sometimes
a macro specific defintions file).
We'd like to scope the refactoring action down to manifest updates only.
The callers are going to be resposble for #2 from the list. In order to
do that `PackageTarget.sanitizedName` and `PackageTarget.Dependency.name`
have to be externally accessible (under `@_spi(PackageRefactor)` still)
to form the content of the file.1 parent 1d458d9 commit f807ce6
File tree
2 files changed
+20
-24
lines changed- Sources/SwiftRefactor/PackageManifest
2 files changed
+20
-24
lines changedLines changed: 0 additions & 24 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
295 | 295 | | |
296 | 296 | | |
297 | 297 | | |
298 | | - | |
299 | | - | |
300 | | - | |
301 | | - | |
302 | | - | |
303 | | - | |
304 | | - | |
305 | | - | |
306 | | - | |
307 | | - | |
308 | | - | |
309 | | - | |
310 | 298 | | |
311 | 299 | | |
312 | 300 | | |
| |||
346 | 334 | | |
347 | 335 | | |
348 | 336 | | |
349 | | - | |
350 | | - | |
351 | | - | |
352 | | - | |
353 | | - | |
354 | | - | |
355 | | - | |
356 | | - | |
357 | | - | |
358 | | - | |
359 | | - | |
360 | | - | |
361 | 337 | | |
362 | 338 | | |
363 | 339 | | |
| |||
Lines changed: 20 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
21 | 27 | | |
22 | 28 | | |
23 | 29 | | |
| |||
51 | 57 | | |
52 | 58 | | |
53 | 59 | | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
54 | 70 | | |
55 | 71 | | |
56 | 72 | | |
| |||
141 | 157 | | |
142 | 158 | | |
143 | 159 | | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
0 commit comments