Commit 792a9ae
committed
SwiftExtract: doc cleanup, drop default knob impls, drop swift-5 mode on tests
Three small review-driven cleanups:
- `SwiftAnalyzer` doc: drop the parenthetical example in the lead-in and
fix "language-neutral" to "output is language-neutral"; drop the
"useful for tests / no code generation" sentence on the static
`analyze` convenience.
- `SwiftExtractConfiguration`: remove the protocol-extension defaults for
`extractsOperators` and `extractsGenericTypeInitializers`. Both are
semantic decisions about what the analysis layer should do for a given
language target; making conformers state their position keeps a new
language code generator from silently inheriting the Java-specific
defaults. `Configuration` (swift-java) now declares both as `false`
explicitly.
- `SwiftExtractTests`: drop the `.swiftLanguageMode(.v5)` override; the
target compiles and runs cleanly under the package's default Swift 6
mode.1 parent 9964dcf commit 792a9ae
4 files changed
Lines changed: 8 additions & 11 deletions
File tree
- Sources
- JExtractSwiftLib
- SwiftExtract
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
475 | 475 | | |
476 | 476 | | |
477 | 477 | | |
478 | | - | |
479 | | - | |
480 | | - | |
481 | 478 | | |
482 | 479 | | |
483 | 480 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
45 | 50 | | |
46 | 51 | | |
47 | 52 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
| 22 | + | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| |||
157 | 157 | | |
158 | 158 | | |
159 | 159 | | |
160 | | - | |
161 | | - | |
| 160 | + | |
162 | 161 | | |
163 | 162 | | |
164 | 163 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | 90 | | |
95 | 91 | | |
96 | 92 | | |
| |||
0 commit comments