Skip to content

Commit 5eeeb78

Browse files
committed
Remove broken customOperator test, regenerate SwiftJavaConfigFile.md
1 parent d332212 commit 5eeeb78

2 files changed

Lines changed: 20 additions & 25 deletions

File tree

‎Sources/SwiftJavaDocumentation/Documentation.docc/SwiftJavaConfigFile.md‎

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -434,6 +434,16 @@ Example:
434434

435435
Compile for the specified Java SE release.
436436

437+
`JavaVersion` is an integer identifying a Java SE release, in the same
438+
shape as ``JavaSourceLevel``. Supported values:
439+
440+
- `17`
441+
- `18`
442+
- `21`
443+
- `22`
444+
- `24`
445+
- `25`
446+
437447
---
438448

439449
#### targetCompatibility
@@ -442,6 +452,16 @@ Compile for the specified Java SE release.
442452

443453
Generate class files suitable for the specified Java SE release.
444454

455+
`JavaVersion` is an integer identifying a Java SE release, in the same
456+
shape as ``JavaSourceLevel``. Supported values:
457+
458+
- `17`
459+
- `18`
460+
- `21`
461+
- `22`
462+
- `24`
463+
- `25`
464+
445465
---
446466

447467
#### javaFilterInclude

‎Tests/SwiftExtractTests/AnalysisResultTests.swift‎

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -372,31 +372,6 @@ struct AnalysisResultSuite {
372372
#expect(result.extractedTypes["OnlyWhenImportable"] == nil)
373373
}
374374

375-
@Test func customOperator() throws {
376-
var config = DefaultSwiftExtractConfiguration()
377-
config.availableImportModules = ["MadeUpModule"]
378-
379-
let result = try analyze(
380-
sources: [
381-
(
382-
"/fake/Source.swift",
383-
"""
384-
struct Box {
385-
static prefix func +++ (other: inout Box) -> Box {
386-
return other
387-
}
388-
}
389-
"""
390-
)
391-
],
392-
moduleName: "Aquarium",
393-
config: config
394-
)
395-
396-
#expect(result.extractedTypes["AlwaysHere"] != nil)
397-
#expect(result.extractedTypes["OnlyWhenImportable"] != nil)
398-
}
399-
400375
/// Adding the module to `availableImportModules` activates the
401376
/// `#if canImport(<module>)` clause so its declarations are extracted.
402377
@Test func availableImportModulesActivatesCanImportClause() throws {

0 commit comments

Comments
 (0)