Skip to content

Commit 3bcdd48

Browse files
committed
Exclude WorkerNavigator extensions
1 parent 162dfd7 commit 3bcdd48

File tree

3 files changed

+2
-4
lines changed

3 files changed

+2
-4
lines changed

Sources/FileSystem/Generated.swift

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -439,8 +439,6 @@ public extension NavigatorStorage {
439439
@inlinable var storage: StorageManager { jsObject[Strings.storage].fromJSValue()! }
440440
}
441441

442-
extension WorkerNavigator: NavigatorStorage {}
443-
444442
extension Navigator: NavigatorStorage {}
445443

446444
public class OpenFilePickerOptions: BridgedDictionary {

Sources/WebGPU/Generated.swift

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3534,8 +3534,6 @@ public extension NavigatorGPU {
35343534

35353535
extension Navigator: NavigatorGPU {}
35363536

3537-
extension WorkerNavigator: NavigatorGPU {}
3538-
35393537
public typealias GPUBufferUsageFlags = UInt32
35403538
public typealias GPUMapModeFlags = UInt32
35413539
public typealias GPUTextureUsageFlags = UInt32

Sources/WebIDLToSwift/MergeDeclarations.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ enum DeclarationMerger {
1111
// but as a pointer it can't be represented as floating point number either.
1212
"GLintptr",
1313
]
14+
static let ignoredIncludeTargets: Set<String> = ["WorkerNavigator"]
1415
static let validExposures: Set<String> = ["Window"]
1516

1617
static let ignoredParents: Set<String> = ["LinkStyle"]
@@ -117,6 +118,7 @@ enum DeclarationMerger {
117118
var includes = Dictionary(grouping: allNodes(ofType: IDLIncludes.self)) { $0.target }
118119
.mapValues { $0.map(\.includes).filter { !Self.ignoredParents.contains($0) } }
119120
.filter { !$0.value.isEmpty }
121+
.filter { !ignoredIncludeTargets.contains($0.key) }
120122

121123
let mergedInterfaces = Dictionary(
122124
grouping: allNodes(ofType: IDLInterface.self).map {

0 commit comments

Comments
 (0)