Skip to content

Commit

Permalink
Sequence doesn't implement Contains in earlier versions of Swift
Browse files Browse the repository at this point in the history
alright
  • Loading branch information
donn committed Jan 4, 2024
1 parent 9cd4a4e commit 6234623
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Sources/Fault/Entries/chain.swift
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ func chainInternal(
testName: String,
tckName: String,
invClockName: String?,
ignoredInputs: any Sequence<String>
ignoredInputs: Set<String>
) throws -> [ChainRegister] {
// Modifies module definition in-place to create scan-chain.
// Changes name to .original to differentate from new top level.
Expand Down Expand Up @@ -262,7 +262,7 @@ func chainTop(
testName: String,
tckName: String,
invClockName _: String?,
ignoredInputs: any Sequence<String>,
ignoredInputs: Set<String>,
internalOrder: [ChainRegister]
) throws -> (supermodel: PythonObject, order: [ChainRegister]) {
var order: [ChainRegister] = []
Expand Down
2 changes: 1 addition & 1 deletion Sources/Fault/Module.swift
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ struct Module {
portsByName = ports.reduce(into: [String: Port]()) { $0[$1.name] = $1 }
}

static func getModules(in files: [String], filter filterOpt: (any Sequence<String>)? = nil) throws -> OrderedDictionary<String, Module> {
static func getModules(in files: [String], filter filterOpt: Set<String>? = nil) throws -> OrderedDictionary<String, Module> {
let parse = Python.import("pyverilog.vparser.parser").parse
var result: OrderedDictionary<String, Module> = [:]

Expand Down

0 comments on commit 6234623

Please sign in to comment.